Skip to content

Commit

Permalink
Fix rune printing with %b
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerBill committed Feb 25, 2025
1 parent 400348c commit cae91c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/fmt/fmt.odin
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cae91c9

Please sign in to comment.