mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-18 13:41:08 +00:00
Fix issue #131
This commit is contained in:
@@ -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