mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
Changed u64 to usize to fix #24208
This commit is contained in:
parent
67e6df4313
commit
4e6a04929d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue