mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/decimal: add a comment explaining weird code in maxUpExponent. Fixes #29
This commit is contained in:
parent
fb140eda33
commit
674888fdc9
1 changed files with 1 additions and 0 deletions
|
@ -186,6 +186,7 @@ func maxUpExponent(v int64) int16 {
|
|||
v = -v
|
||||
}
|
||||
if v < 0 {
|
||||
// Handle corner case for v=-1<<63
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue