mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-19 04:12:22 -07: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");
|
||||
}
|
||||
|
||||
if data == nil || tag < 0 {
|
||||
if data == nil || tag <= 0 {
|
||||
write_string(fi.buf, "(union)");
|
||||
} else {
|
||||
ti := info.variants[tag-1];
|
||||
|
||||
Reference in New Issue
Block a user