aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-01-01 13:41:56 +0000
committergingerBill <gingerBill@users.noreply.github.com>2026-01-01 13:41:56 +0000
commit70697fa00fdda2dc651d41b60f5f6dbed46998a1 (patch)
treed839c4c8b80a54240d8a4bc711da0ba77cd7db71
parent94146e4fe77c180bc74183cc7b29748698fc435e (diff)
When using `fmt_write_padding`, remove the need to restore `fi.zero` since it is not used.
-rw-r--r--core/fmt/fmt.odin6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin
index 6a67843bb..0d20071e6 100644
--- a/core/fmt/fmt.odin
+++ b/core/fmt/fmt.odin
@@ -1100,10 +1100,7 @@ _fmt_int :: proc(fi: ^Info, u: u64, base: int, is_signed: bool, bit_size: int, d
if fi.prec_set {
prec = fi.prec
if prec == 0 && u == 0 {
- prev_zero := fi.zero
- fi.zero = false
fmt_write_padding(fi, fi.width)
- fi.zero = prev_zero
return
}
} else if fi.zero && fi.width_set {
@@ -1185,10 +1182,7 @@ _fmt_int_128 :: proc(fi: ^Info, u: u128, base: int, is_signed: bool, bit_size: i
if fi.prec_set {
prec = fi.prec
if prec == 0 && u == 0 {
- prev_zero := fi.zero
- fi.zero = false
fmt_write_padding(fi, fi.width)
- fi.zero = prev_zero
return
}
} else if fi.zero && fi.width_set {