Skip to content

Commit f3633f4

Browse files
committed
Fix test on 32 bit arch
1 parent 551f4a5 commit f3633f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

decode.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ type Primitive struct {
4242
// The significand precision for float32 and float64 is 24 and 53 bits; this is
4343
// the range a natural number can be stored in a float without loss of data.
4444
const (
45-
maxSafeFloat32Int = 16777215 // 2^24-1
46-
maxSafeFloat64Int = 9007199254740991 // 2^53-1
45+
maxSafeFloat32Int = 16777215 // 2^24-1
46+
maxSafeFloat64Int = int64(9007199254740991) // 2^53-1
4747
)
4848

4949
// PrimitiveDecode is just like the other `Decode*` functions, except it

0 commit comments

Comments
 (0)