mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
std.Io.Writer.Hashed: fix bad assert
This commit is contained in:
parent
d91744401f
commit
eb17d4562a
@ -2350,7 +2350,7 @@ pub fn Hashed(comptime Hasher: type) type {
|
||||
this.hasher.update(slice);
|
||||
}
|
||||
const pattern = data[data.len - 1];
|
||||
assert(remaining == splat * pattern.len);
|
||||
assert(remaining <= splat * pattern.len);
|
||||
switch (pattern.len) {
|
||||
0 => {
|
||||
assert(remaining == 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user