mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-27 07:51:49 -07:00
Removed implicit assignments for container allocators in the Base and Core packages
This commit is contained in:
@@ -692,6 +692,8 @@ _unmarshal_map :: proc(d: Decoder, v: any, ti: ^reflect.Type_Info, hdr: Header,
|
||||
case reflect.Type_Info_Map:
|
||||
raw_map := (^mem.Raw_Map)(v.data)
|
||||
if raw_map.allocator.procedure == nil {
|
||||
// Note(Ed) - Sectr Fork: I'm premmtively leaving this here incase it happens...
|
||||
runtime.debug_trap()
|
||||
raw_map.allocator = context.allocator
|
||||
}
|
||||
|
||||
|
||||
@@ -526,6 +526,8 @@ unmarshal_object :: proc(p: ^Parser, v: any, end_token: Token_Kind) -> (err: Unm
|
||||
}
|
||||
raw_map := (^mem.Raw_Map)(v.data)
|
||||
if raw_map.allocator.procedure == nil {
|
||||
// Note(Ed) - Sectr Fork: I'm premmtively leaving this here incase it happens...
|
||||
runtime.debug_trap()
|
||||
raw_map.allocator = p.allocator
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user