mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-21 13:55:45 +00:00
Correct reflect.map_entry_info_slice
This commit is contained in:
@@ -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