mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
parent
cc1475c91d
commit
224e39316f
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;
|
||||
if (self.buf_len < 16) {
|
||||
var scratch: [16]u8 = undefined;
|
||||
if (self.buf_len < 16) {
|
||||
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
Reference in a new issue