From 9df156a038faabafc83e6bd933197c3530a45e4e Mon Sep 17 00:00:00 2001 From: indrajit Date: Thu, 16 Jan 2025 15:39:47 +0600 Subject: [PATCH] update c binds --- src/ffi/c_binds.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ffi/c_binds.rs b/src/ffi/c_binds.rs index 57e2c51..10a9bf9 100644 --- a/src/ffi/c_binds.rs +++ b/src/ffi/c_binds.rs @@ -25,7 +25,7 @@ pub unsafe extern "C" fn c_generate_hotp( CStr::from_ptr(secret).to_str().unwrap(), length as u8, radix as u8, - counter, + counter as u64, ); let c_string = std::ffi::CString::new(hotp).unwrap(); c_string.into_raw()