mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix issue #131
This commit is contained in:
+1
-1
@@ -938,7 +938,7 @@ fmt_value :: proc(fi: ^Fmt_Info, v: any, verb: rune) {
|
|||||||
case: panic("Invalid union tag type");
|
case: panic("Invalid union tag type");
|
||||||
}
|
}
|
||||||
|
|
||||||
if data == nil || tag < 0 {
|
if data == nil || tag <= 0 {
|
||||||
write_string(fi.buf, "(union)");
|
write_string(fi.buf, "(union)");
|
||||||
} else {
|
} else {
|
||||||
ti := info.variants[tag-1];
|
ti := info.variants[tag-1];
|
||||||
|
|||||||
Reference in New Issue
Block a user