lib/decimal: add a comment explaining weird code in maxUpExponent. Fixes #29

This commit is contained in:
Aliaksandr Valialkin 2019-05-23 17:18:35 +03:00
parent fb140eda33
commit 674888fdc9

View File

@ -186,6 +186,7 @@ func maxUpExponent(v int64) int16 {
v = -v
}
if v < 0 {
// Handle corner case for v=-1<<63
return 0
}