mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Followup fix to #4895
This commit is contained in:
@@ -176,9 +176,7 @@ marshal_to_writer :: proc(w: io.Writer, v: any, opt: ^Marshal_Options) -> (err:
|
|||||||
return .Unsupported_Type
|
return .Unsupported_Type
|
||||||
|
|
||||||
case runtime.Type_Info_Pointer:
|
case runtime.Type_Info_Pointer:
|
||||||
ptr := a.(rawptr)
|
if v.id == typeid_of(Null) {
|
||||||
|
|
||||||
if ptr == nil {
|
|
||||||
io.write_string(w, "null") or_return
|
io.write_string(w, "null") or_return
|
||||||
} else {
|
} else {
|
||||||
return .Unsupported_Type
|
return .Unsupported_Type
|
||||||
|
|||||||
Reference in New Issue
Block a user