Correct reflect.map_entry_info_slice
This commit is contained in:
1 parent
810a1eee41
commit
45f0c812af
2 files changed
+19
-26
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user