From e0f5c1d7ce96562adff1d06ca2821b4ea1b67385 Mon Sep 17 00:00:00 2001 From: Sergei Lemeshkin Date: Tue, 5 Mar 2019 09:44:52 +0300 Subject: [PATCH] Fix: reading big integers and some floats --- col.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/col.go b/col.go index fa9e02f..6856fcc 100644 --- a/col.go +++ b/col.go @@ -85,7 +85,7 @@ type RK uint32 func (rk RK) number() (intNum int64, floatNum float64, isFloat bool) { multiplied := rk & 1 isInt := rk & 2 - val := rk >> 2 + val := int32(rk) >> 2 if isInt == 0 { isFloat = true floatNum = math.Float64frombits(uint64(val) << 34)