From 12029d3412d25a2d193aa7dcaa7d8f4c8316a8cc Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Wed, 24 Jul 2019 01:39:12 -0600 Subject: [PATCH] Fix warning about deprecated uint64_t uint64_t was deprecated in favor of u64 --- src/crypto/stream/stream_macros.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crypto/stream/stream_macros.rs b/src/crypto/stream/stream_macros.rs index 0ddd8c3210..840da3f5d7 100644 --- a/src/crypto/stream/stream_macros.rs +++ b/src/crypto/stream/stream_macros.rs @@ -5,7 +5,7 @@ macro_rules! stream_module (($stream_name:ident, $noncebytes:expr) => ( #[cfg(not(feature = "std"))] use prelude::*; -use libc::{c_ulonglong, uint64_t}; +use libc::c_ulonglong; use randombytes::randombytes_into; /// Number of bytes in a `Key`. @@ -122,7 +122,7 @@ pub fn stream_xor_ic(m: &[u8], m.as_ptr(), m.len() as c_ulonglong, n.0.as_ptr(), - ic as uint64_t, + ic as u64, k.0.as_ptr()); c } @@ -145,7 +145,7 @@ pub fn stream_xor_ic_inplace(m: &mut [u8], m.as_ptr(), m.len() as c_ulonglong, n.0.as_ptr(), - ic as uint64_t, + ic as u64, k.0.as_ptr()); } }