aboutsummaryrefslogtreecommitdiff
path: root/core/runtime
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-11-08 11:21:45 +0000
committergingerBill <bill@gingerbill.org>2022-11-08 11:21:45 +0000
commit45f0c812afc91038eaf2ed674c1b2d6792c6c349 (patch)
tree84d810a51b533d86efa64bca0bde5cd46d46d464 /core/runtime
parent810a1eee41cc8e047759c8934af70d6e68113082 (diff)
Correct `reflect.map_entry_info_slice`
Diffstat (limited to 'core/runtime')
-rw-r--r--core/runtime/dynamic_map_internal.odin3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/runtime/dynamic_map_internal.odin b/core/runtime/dynamic_map_internal.odin
index 26aed2378..465c5bfb7 100644
--- a/core/runtime/dynamic_map_internal.odin
+++ b/core/runtime/dynamic_map_internal.odin
@@ -190,7 +190,7 @@ map_hash_is_deleted :: #force_inline proc "contextless" (hash: Map_Hash) -> bool
}
map_hash_is_valid :: #force_inline proc "contextless" (hash: Map_Hash) -> bool {
// The MSB indicates a tombstone
- return hash != 0 && (hash >> ((size_of(Map_Hash) * 8) - 1)) == 0
+ return (hash != 0) & ((hash >> ((size_of(Map_Hash) * 8) - 1)) == 0)
}
@@ -249,7 +249,6 @@ map_info :: #force_inline proc "contextless" ($K: typeid, $V: typeid) -> ^Map_In
return &INFO
}
-
map_kvh_data_dynamic :: proc "contextless" (m: Raw_Map, #no_alias info: ^Map_Info) -> (ks: uintptr, vs: uintptr, hs: [^]Map_Hash, sk: uintptr, sv: uintptr) {
@static INFO_HS := Map_Cell_Info {
size_of(Map_Hash),