aboutsummaryrefslogtreecommitdiff
path: root/src/string_types.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_types.zig')
-rw-r--r--src/string_types.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_types.zig b/src/string_types.zig
index d7e95b3f7..a9f0d2e25 100644
--- a/src/string_types.zig
+++ b/src/string_types.zig
@@ -103,7 +103,7 @@ pub const HashedString = struct {
pub fn Eql(this: HashedString, comptime Other: type, other: Other) bool {
switch (comptime Other) {
HashedString, *HashedString, *const HashedString => {
- return ((@maximum(this.hash, other.hash) > 0 and this.hash == other.hash) or (this.ptr == other.ptr)) and this.len == other.len;
+ return ((@max(this.hash, other.hash) > 0 and this.hash == other.hash) or (this.ptr == other.ptr)) and this.len == other.len;
},
else => {
return @as(usize, this.len) == other.len and @truncate(u32, std.hash.Wyhash.hash(0, other[0..other.len])) == this.hash;