mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
Changed u64 to usize to fix #24208
This commit is contained in:
parent
67e6df4313
commit
4e6a04929d
@ -20,7 +20,7 @@ pub fn hash(seed: u64, input: []const u8) u64 {
|
||||
|
||||
if (len <= 16) {
|
||||
if (len >= 4) {
|
||||
const d: u64 = ((len & 24) >> @intCast(len >> 3));
|
||||
const d: usize = ((len & 24) >> @intCast(len >> 3));
|
||||
const e = len - 4;
|
||||
a = (r32(k) << 32) | r32(k[e..]);
|
||||
b = ((r32(k[d..]) << 32) | r32(k[(e - d)..]));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user