From c4a7d4d583f9f548adc704868cfe6b8c9866b0d4 Mon Sep 17 00:00:00 2001 From: Mitchell Henke Date: Wed, 22 Jul 2026 09:57:03 -0500 Subject: [PATCH] Fix pin operator compile warnings --- lib/nimble_totp.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nimble_totp.ex b/lib/nimble_totp.ex index 6f11a20..03f7192 100644 --- a/lib/nimble_totp.ex +++ b/lib/nimble_totp.ex @@ -272,8 +272,8 @@ defmodule NimbleTOTP do defp hmac_truncate(hmac) do key_length = byte_size(hmac) - 1 - <<_::size(key_length)-binary, _::4, offset::4>> = hmac - <<_::size(offset)-binary, p::4-binary, _::binary>> = hmac + <<_::size(^key_length)-binary, _::4, offset::4>> = hmac + <<_::size(^offset)-binary, p::4-binary, _::binary>> = hmac <<_::1, bits::31>> = p bits end