diff options
Diffstat (limited to 'core/strconv/generic_float.odin')
| -rw-r--r-- | core/strconv/generic_float.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/strconv/generic_float.odin b/core/strconv/generic_float.odin index 622dcd044..ad0c51880 100644 --- a/core/strconv/generic_float.odin +++ b/core/strconv/generic_float.odin @@ -110,7 +110,7 @@ format_digits :: proc(buf: []byte, shortest: bool, neg: bool, digs: Decimal_Slic switch fmt { case 'f', 'F': - add_bytes(&b, neg ? '-' : '+'); + add_bytes(&b, '-' if neg else '+'); // integer, padded with zeros when needed if digs.decimal_point > 0 { @@ -138,7 +138,7 @@ format_digits :: proc(buf: []byte, shortest: bool, neg: bool, digs: Decimal_Slic return to_bytes(b); case 'e', 'E': - add_bytes(&b, neg ? '-' : '+'); + add_bytes(&b, '-' if neg else '+'); ch := byte('0'); if digs.count != 0 { |