diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2015-02-23 16:12:40 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2015-02-23 16:12:40 +1300 |
| commit | 5d8c9f5c9976a906c8d2b41f9375df2f735ec23b (patch) | |
| tree | 64ea3505cde8519db382f7ace9c75661710fd075 | |
| parent | 67b03fbc3d44c88df160ba4ba6922b01f4c7675e (diff) | |
| download | rust-5d8c9f5c9976a906c8d2b41f9375df2f735ec23b.tar.gz rust-5d8c9f5c9976a906c8d2b41f9375df2f735ec23b.zip | |
int audit core::hash
| -rw-r--r-- | src/libcore/hash/mod.rs | 4 | ||||
| -rw-r--r-- | src/libcore/hash/sip.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/hash/mod.rs b/src/libcore/hash/mod.rs index ed48903a7c2..edc4b7e10ee 100644 --- a/src/libcore/hash/mod.rs +++ b/src/libcore/hash/mod.rs @@ -20,7 +20,7 @@ //! //! #[derive(Hash)] //! struct Person { -//! id: uint, +//! id: u32, //! name: String, //! phone: u64, //! } @@ -38,7 +38,7 @@ //! use std::hash::{hash, Hash, Hasher, SipHasher}; //! //! struct Person { -//! id: uint, +//! id: u32, //! name: String, //! phone: u64, //! } diff --git a/src/libcore/hash/sip.rs b/src/libcore/hash/sip.rs index 6f24fc70673..39bcbacdff1 100644 --- a/src/libcore/hash/sip.rs +++ b/src/libcore/hash/sip.rs @@ -34,13 +34,13 @@ use super::Hasher; pub struct SipHasher { k0: u64, k1: u64, - length: uint, // how many bytes we've processed + length: usize, // how many bytes we've processed v0: u64, // hash state v1: u64, v2: u64, v3: u64, tail: u64, // unprocessed bytes le - ntail: uint, // how many bytes in tail are valid + ntail: usize, // how many bytes in tail are valid } // sadly, these macro definitions can't appear later, |
