Correct reflect.map_entry_info_slice

This commit is contained in:
gingerBill
2022-11-08 11:21:45 +00:00
parent 810a1eee41
commit 45f0c812af
2 changed files with 19 additions and 26 deletions
+1 -2
View File
@@ -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),