Skip to content

Commit

Permalink
Merge pull request #347 from zhsj/fix-32
Browse files Browse the repository at this point in the history
Fix test on 32 bit arch
  • Loading branch information
arp242 authored Feb 23, 2022
2 parents 551f4a5 + f3633f4 commit 573cad4
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 573cad4

Please sign in to comment.