Skip to content

Commit 5d8c9f5

Browse files
committed
int audit core::hash
1 parent 67b03fb commit 5d8c9f5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libcore/hash/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//!
2121
//! #[derive(Hash)]
2222
//! struct Person {
23-
//! id: uint,
23+
//! id: u32,
2424
//! name: String,
2525
//! phone: u64,
2626
//! }
@@ -38,7 +38,7 @@
3838
//! use std::hash::{hash, Hash, Hasher, SipHasher};
3939
//!
4040
//! struct Person {
41-
//! id: uint,
41+
//! id: u32,
4242
//! name: String,
4343
//! phone: u64,
4444
//! }

src/libcore/hash/sip.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ use super::Hasher;
3434
pub struct SipHasher {
3535
k0: u64,
3636
k1: u64,
37-
length: uint, // how many bytes we've processed
37+
length: usize, // how many bytes we've processed
3838
v0: u64, // hash state
3939
v1: u64,
4040
v2: u64,
4141
v3: u64,
4242
tail: u64, // unprocessed bytes le
43-
ntail: uint, // how many bytes in tail are valid
43+
ntail: usize, // how many bytes in tail are valid
4444
}
4545

4646
// sadly, these macro definitions can't appear later,

0 commit comments

Comments
 (0)