Skip to content

Commit 4e6a049

Browse files
Alexandrealexrp
authored andcommitted
Changed u64 to usize to fix #24208
1 parent 67e6df4 commit 4e6a049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/hash/RapidHash.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn hash(seed: u64, input: []const u8) u64 {
2020

2121
if (len <= 16) {
2222
if (len >= 4) {
23-
const d: u64 = ((len & 24) >> @intCast(len >> 3));
23+
const d: usize = ((len & 24) >> @intCast(len >> 3));
2424
const e = len - 4;
2525
a = (r32(k) << 32) | r32(k[e..]);
2626
b = ((r32(k[d..]) << 32) | r32(k[(e - d)..]));

0 commit comments

Comments
 (0)