Implement StableHasher::write_u128 via write_u64
This commit is contained in:
parent
fd57c6b407
commit
ad8d304163
@ -107,7 +107,8 @@ fn write_u64(&mut self, i: u64) {
|
||||
|
||||
#[inline]
|
||||
fn write_u128(&mut self, i: u128) {
|
||||
self.state.write(&i.to_le_bytes());
|
||||
self.write_u64(i as u64);
|
||||
self.write_u64((i >> 64) as u64);
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
Loading…
Reference in New Issue
Block a user