mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 03:47:51 +00:00
return early on mantissa=0
This commit is contained in:
parent
809a02d986
commit
432e18d571
1 changed files with 1 additions and 0 deletions
|
|
@ -451,6 +451,7 @@ func reducePrecision(sign bool, mantissa []byte, scale int64) ([]byte, int64, bo
|
|||
// string, that means it's value should be 0.
|
||||
if len(mantissa) == 0 {
|
||||
mantissa = []byte{'0'}
|
||||
return mantissa, scale, true
|
||||
}
|
||||
|
||||
lenMantissa := len(mantissa)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue