aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/hash_map.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/std/hash_map.zig b/std/hash_map.zig
index df7ba740e8..13ebb0a1fe 100644
--- a/std/hash_map.zig
+++ b/std/hash_map.zig
@@ -564,12 +564,12 @@ pub fn autoHash(key: var, comptime rng: *std.rand.Random, comptime HashInt: type
},
builtin.TypeId.Float => |info| {
- return autoHash(@bitCast(@IntType(false, info.bits), key), rng);
+ return autoHash(@bitCast(@IntType(false, info.bits), key), rng, HashInt);
},
- builtin.TypeId.Bool => return autoHash(@boolToInt(key), rng),
- builtin.TypeId.Enum => return autoHash(@enumToInt(key), rng),
- builtin.TypeId.ErrorSet => return autoHash(@errorToInt(key), rng),
- builtin.TypeId.Promise, builtin.TypeId.Fn => return autoHash(@ptrToInt(key), rng),
+ builtin.TypeId.Bool => return autoHash(@boolToInt(key), rng, HashInt),
+ builtin.TypeId.Enum => return autoHash(@enumToInt(key), rng, HashInt),
+ builtin.TypeId.ErrorSet => return autoHash(@errorToInt(key), rng, HashInt),
+ builtin.TypeId.Promise, builtin.TypeId.Fn => return autoHash(@ptrToInt(key), rng, HashInt),
builtin.TypeId.BoundFn,
builtin.TypeId.ComptimeFloat,