mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Added temp allocator guard to json.marshal, in case we temp alloc when sorting map kesy
This commit is contained in:
@@ -83,6 +83,9 @@ marshal_to_writer :: proc(w: io.Writer, v: any, opt: ^Marshal_Options) -> (err:
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// temp guard in case we are sorting map keys, which will use temp allocations
|
||||||
|
runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD()
|
||||||
|
|
||||||
ti := runtime.type_info_base(type_info_of(v.id))
|
ti := runtime.type_info_base(type_info_of(v.id))
|
||||||
a := any{v.data, ti.id}
|
a := any{v.data, ti.id}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user