From f3633f4f90eb77830a6bd67b14528abd06a017ac Mon Sep 17 00:00:00 2001 From: Shengjing Zhu Date: Tue, 22 Feb 2022 23:30:40 +0800 Subject: [PATCH] Fix test on 32 bit arch --- decode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decode.go b/decode.go index e24f0c5d..99def859 100644 --- a/decode.go +++ b/decode.go @@ -42,8 +42,8 @@ type Primitive struct { // The significand precision for float32 and float64 is 24 and 53 bits; this is // the range a natural number can be stored in a float without loss of data. const ( - maxSafeFloat32Int = 16777215 // 2^24-1 - maxSafeFloat64Int = 9007199254740991 // 2^53-1 + maxSafeFloat32Int = 16777215 // 2^24-1 + maxSafeFloat64Int = int64(9007199254740991) // 2^53-1 ) // PrimitiveDecode is just like the other `Decode*` functions, except it