Fix strconv.parse_float related procedures caused by a shifting problem

This commit is contained in:
gingerBill
2025-04-16 13:45:50 +01:00
parent 3dcc22fa6d
commit 4ec03a2d9b
2 changed files with 24 additions and 34 deletions
+1 -2
View File
@@ -399,7 +399,7 @@ shift_left :: proc(a: ^Decimal, k: uint) #no_bounds_check {
a.decimal_point += delta
a.count = clamp(a.count, 0, len(a.digits))
a.count = clamp(a.count+delta, 0, len(a.digits))
trim(a)
}
/*
@@ -562,4 +562,3 @@ rounded_integer :: proc(a: ^Decimal) -> u64 {
}
return n
}