mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
parent
cc1475c91d
commit
224e39316f
@ -73,8 +73,8 @@ pub const Wyhash = struct {
|
||||
newSelf.smallKey(input);
|
||||
} else {
|
||||
var offset: usize = 0;
|
||||
var scratch: [16]u8 = undefined;
|
||||
if (self.buf_len < 16) {
|
||||
var scratch: [16]u8 = undefined;
|
||||
const rem = 16 - self.buf_len;
|
||||
@memcpy(scratch[0..rem], self.buf[self.buf.len - rem ..][0..rem]);
|
||||
@memcpy(scratch[rem..][0..self.buf_len], self.buf[0..self.buf_len]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user