diff --git a/lib/decimal/decimal.go b/lib/decimal/decimal.go index 11e9eda86..60c1d3005 100644 --- a/lib/decimal/decimal.go +++ b/lib/decimal/decimal.go @@ -186,6 +186,7 @@ func maxUpExponent(v int64) int16 { v = -v } if v < 0 { + // Handle corner case for v=-1<<63 return 0 }