aboutsummaryrefslogtreecommitdiff
path: root/core/fmt
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-01-01 13:40:43 +0000
committergingerBill <gingerBill@users.noreply.github.com>2026-01-01 13:40:43 +0000
commit94146e4fe77c180bc74183cc7b29748698fc435e (patch)
tree8bb00eeaaacfe61f2057b71993f6eb892db1b1d0 /core/fmt
parent3c8b1ab414f251b12fc59ce17cab074185584bc6 (diff)
fix printing dozenal numbers `0z` from `0o`
Diffstat (limited to 'core/fmt')
-rw-r--r--core/fmt/fmt.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin
index 059413787..6a67843bb 100644
--- a/core/fmt/fmt.odin
+++ b/core/fmt/fmt.odin
@@ -1086,7 +1086,7 @@ _fmt_int :: proc(fi: ^Info, u: u64, base: int, is_signed: bool, bit_size: int, d
case 12:
io.write_byte(fi.writer, '0', &fi.n)
- io.write_byte(fi.writer, 'o', &fi.n)
+ io.write_byte(fi.writer, 'z', &fi.n)
start = 2
case 16:
@@ -1171,7 +1171,7 @@ _fmt_int_128 :: proc(fi: ^Info, u: u128, base: int, is_signed: bool, bit_size: i
case 12:
io.write_byte(fi.writer, '0', &fi.n)
- io.write_byte(fi.writer, 'o', &fi.n)
+ io.write_byte(fi.writer, 'z', &fi.n)
start = 2
case 16: