aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-10-19 01:59:31 +0300
committerVeikka Tuominen <git@vexu.eu>2022-10-20 20:11:12 +0300
commitce95cc170bfa763d31fc498169ee9e44adca57fa (patch)
tree3cee5eca0147f968931af63d153e8ede95783aee /src
parent9a52abf3b47447b4ce976a99daca1c9c859c5aca (diff)
downloadzig-ce95cc170bfa763d31fc498169ee9e44adca57fa.tar.gz
zig-ce95cc170bfa763d31fc498169ee9e44adca57fa.zip
Value: handle runtime_int in hashPtr
Closes #12702
Diffstat (limited to 'src')
-rw-r--r--src/value.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/value.zig b/src/value.zig
index 47f69b2099..71fb8c4a0e 100644
--- a/src/value.zig
+++ b/src/value.zig
@@ -2555,6 +2555,9 @@ pub const Value = extern union {
.lazy_size,
=> return hashInt(ptr_val, hasher, target),
+ // The value is runtime-known and shouldn't affect the hash.
+ .runtime_int => {},
+
else => unreachable,
}
}