Followup fix to #4895

This commit is contained in:
Courtney Strachan
2025-10-05 19:22:04 -07:00
parent 6de2d6e8ca
commit 69ad94d8a8
+1 -3
View File
@@ -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