diff --git a/core/strconv/generic_float.odin b/core/strconv/generic_float.odin index 163148156..902a4317c 100644 --- a/core/strconv/generic_float.odin +++ b/core/strconv/generic_float.odin @@ -281,7 +281,7 @@ round_shortest :: proc(d: ^decimal.Decimal, mant: u64, exp: int, flt: ^Float_Inf } upper_: decimal.Decimal; upper := &upper_ - decimal.assign(upper, 2*mant - 1) + decimal.assign(upper, 2*mant + 1) decimal.shift(upper, exp - int(flt.mantbits) - 1) mantlo: u64