Implement StableHasher::write_u128 via write_u64

This commit is contained in:
Ben Kimock 2023-04-16 09:44:03 -04:00
parent fd57c6b407
commit ad8d304163

View File

@ -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]