diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-08 16:39:13 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-08 16:39:13 +0100 |
| commit | fc9c995dc4664516e0f043e93176804fd034fa6b (patch) | |
| tree | 68c6df9471ac9f72a4ab18482fcffb163c514c77 /core | |
| parent | 564d5af8b2094e629793b504168fa40432bd4f1c (diff) | |
Fix fmt for code compilation bug with `any`
Diffstat (limited to 'core')
| -rw-r--r-- | core/fmt/fmt.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin index bd5f2b155..234f4afbd 100644 --- a/core/fmt/fmt.odin +++ b/core/fmt/fmt.odin @@ -951,10 +951,10 @@ fmt_bad_verb :: proc(fi: ^Info, verb: rune) { io.write_string(fi.writer, "%!", &fi.n) io.write_rune(fi.writer, verb, &fi.n) io.write_byte(fi.writer, '(', &fi.n) - if fi.arg.id != nil { - reflect.write_typeid(fi.writer, fi.arg.id, &fi.n) + if arg := fi.arg; arg != nil { + reflect.write_typeid(fi.writer, arg.id, &fi.n) io.write_byte(fi.writer, '=', &fi.n) - fmt_value(fi, fi.arg, 'v') + fmt_value(fi, arg, 'v') } else { io.write_string(fi.writer, "<nil>", &fi.n) } |