use usize instead of i64 in hash and compare

This commit is contained in:
Folkert 2021-08-25 20:40:05 +02:00
parent 69e4f6d208
commit ce6ab15139
2 changed files with 5 additions and 5 deletions

View file

@ -878,7 +878,7 @@ fn hash_bitcode_fn<'a, 'ctx, 'env>(
buffer: PointerValue<'ctx>,
width: u32,
) -> IntValue<'ctx> {
let num_bytes = env.context.i64_type().const_int(width as u64, false);
let num_bytes = env.ptr_int().const_int(width as u64, false);
call_bitcode_fn(
env,