diff options
| author | gingerBill <bill@gingerbill.org> | 2025-02-25 15:53:06 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2025-02-25 15:53:06 +0000 |
| commit | cae91c94725ef16680dd9cd114789eb5b11b2bf3 (patch) | |
| tree | 8c249b769b7c5e117ce5393327525a877206d676 | |
| parent | 400348c925519cb98f3ba202a133501d10c4fcc7 (diff) | |
Fix `rune` printing with `%b`
| -rw-r--r-- | core/fmt/fmt.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin index 2fe6d3350..b7b42ffa4 100644 --- a/core/fmt/fmt.odin +++ b/core/fmt/fmt.odin @@ -1297,7 +1297,7 @@ fmt_rune :: proc(fi: ^Info, r: rune, verb: rune) { case 'q', 'w': fi.n += io.write_quoted_rune(fi.writer, r) case: - fmt_int(fi, u64(r), false, 32, verb) + fmt_int(fi, u64(u32(r)), false, 32, verb) } } // Formats an integer value according to the specified formatting verb. |