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

Commit

Permalink
Merge #358
Browse files Browse the repository at this point in the history
358: Fix warning about deprecated uint64_t r=kpp a=tmccombs

uint64_t was deprecated in favor of u64

Co-authored-by: Thayne McCombs <astrothayne@gmail.com>
  • Loading branch information
bors[bot] and tmccombs committed Jul 24, 2019
2 parents 73ea57a + 12029d3 commit a4a40f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/crypto/stream/stream_macros.rs
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 a4a40f4

Please sign in to comment.