mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 03:44:46 +01:00
parent
925cc08b95
commit
455ea58872
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue