Correct #soa RTTI usage

This commit is contained in:
gingerBill
2024-05-16 16:30:45 +01:00
parent c9b1c99a40
commit 7cf62f00c3
3 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -1960,7 +1960,7 @@ fmt_struct :: proc(fi: ^Info, v: any, the_verb: rune, info: runtime.Type_Info_St
fmt_arg(fi, any{data, t.id}, verb)
}
} else {
t := info.types[i].variant.(runtime.Type_Info_Pointer).elem
t := info.types[i].variant.(runtime.Type_Info_Multi_Pointer).elem
t_size := uintptr(t.size)
if reflect.is_any(t) {
io.write_string(fi.writer, "any{}", &fi.n)