fix: ensure that rhs of shifts are generic

mistakenly left an @intCast that implied a u5 (which only works when
Digest == u32)
This commit is contained in:
Rekai Nyangadzayi Musuka 2023-04-20 23:34:06 -05:00
parent ec8231877a
commit 3ee7dd0370
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ pub fn HashArrayMappedTrie(comptime K: type, comptime V: type, comptime Context:
var i: Log2Int(Digest) = 0;
for (0..table_size) |shift| {
const mask_loop = @as(Digest, 1) << @intCast(u5, shift);
const mask_loop = @as(Digest, 1) << @intCast(Log2Int(Digest), shift);
if (new_map & mask_loop != 0) {
defer i += 1;