1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-04 10:34:11 +02:00

use more nullhasher

This commit is contained in:
Robin Appelman 2019-08-29 16:57:38 +02:00
commit 089f615a47
2 changed files with 15 additions and 7 deletions

View file

@ -15,7 +15,12 @@ impl Hasher for NullHasher {
#[inline]
fn write(&mut self, _msg: &[u8]) {
panic!("can only hash u64 as u32");
panic!("can only hash u64,u32,u16");
}
#[inline]
fn write_u16(&mut self, data: u16) {
self.data = data as u64
}
#[inline]