aboutsummaryrefslogtreecommitdiff
path: root/core/math
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2025-06-05 16:29:41 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2025-06-05 16:56:00 -0400
commitb7de15caa342fd81fb203015e2fd22a82e523342 (patch)
tree9224c1213337d8e834b46e7d19bcf5492838246a /core/math
parent90a1b0ec4b5a0630be329d086f4c08a7c54a74e7 (diff)
Clarify `strconv.append_*` to `strconv.write_*`
Diffstat (limited to 'core/math')
-rw-r--r--core/math/fixed/fixed.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/math/fixed/fixed.odin b/core/math/fixed/fixed.odin
index b23090307..119e727a7 100644
--- a/core/math/fixed/fixed.odin
+++ b/core/math/fixed/fixed.odin
@@ -124,16 +124,16 @@ append :: proc(dst: []byte, x: $T/Fixed($Backing, $Fraction_Width)) -> string {
when size_of(Backing) < 16 {
T :: u64
- append_uint :: strconv.append_uint
+ write_uint :: strconv.write_uint
} else {
T :: u128
- append_uint :: strconv.append_u128
+ write_uint :: strconv.write_u128
}
integer := T(x.i) >> Fraction_Width
fraction := T(x.i) & (1<<Fraction_Width - 1)
- s := append_uint(buf[i:], integer, 10)
+ s := write_uint(buf[i:], integer, 10)
i += len(s)
if fraction != 0 {
buf[i] = '.'