We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 551f4a5 commit f3633f4Copy full SHA for f3633f4
decode.go
@@ -42,8 +42,8 @@ type Primitive struct {
42
// The significand precision for float32 and float64 is 24 and 53 bits; this is
43
// the range a natural number can be stored in a float without loss of data.
44
const (
45
- maxSafeFloat32Int = 16777215 // 2^24-1
46
- maxSafeFloat64Int = 9007199254740991 // 2^53-1
+ maxSafeFloat32Int = 16777215 // 2^24-1
+ maxSafeFloat64Int = int64(9007199254740991) // 2^53-1
47
)
48
49
// PrimitiveDecode is just like the other `Decode*` functions, except it
0 commit comments