This commit is contained in:
gingerBill
2017-11-02 22:30:12 +00:00
parent 414486829a
commit 529d1c78c7
+1 -1
View File
@@ -938,7 +938,7 @@ fmt_value :: proc(fi: ^Fmt_Info, v: any, verb: rune) {
case: panic("Invalid union tag type");
}
if data == nil || tag < 0 {
if data == nil || tag <= 0 {
write_string(fi.buf, "(union)");
} else {
ti := info.variants[tag-1];