Skip to content

Commit

Permalink
Fix test on 32 bit arch
Browse files Browse the repository at this point in the history
  • Loading branch information
zhsj committed Feb 22, 2022
1 parent 551f4a5 commit f3633f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3633f4

Please sign in to comment.