Address various bits of feedback

This commit is contained in:
Jared Ramirez 2021-07-09 09:30:45 -07:00
parent 8ffe02110d
commit a35cc321ab
4 changed files with 81 additions and 23 deletions

View file

@ -127,13 +127,11 @@ fn hash_builtin<'a, 'ctx, 'env>(
| Builtin::Float32
| Builtin::Float128
| Builtin::Float16
| Builtin::Decimal
| Builtin::Usize => {
let hash_bytes = store_and_use_as_u8_ptr(env, val, &layout);
hash_bitcode_fn(env, seed, hash_bytes, layout.stack_size(ptr_bytes))
}
Builtin::Decimal => {
panic!("TODO: Hash Decimal");
}
Builtin::Str => {
// let zig deal with big vs small string
call_bitcode_fn(