Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Commit

Permalink
Fix warning about deprecated uint64_t
Browse files Browse the repository at this point in the history
uint64_t was deprecated in favor of u64
  • Loading branch information
tmccombs committed Jul 24, 2019
1 parent 73ea57a commit 12029d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/crypto/stream/stream_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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
}
Expand All @@ -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());
}
}
Expand Down

0 comments on commit 12029d3

Please sign in to comment.