Skip to content

Commit

Permalink
[*] fix: fix error check with negative int64
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-M-C committed May 27, 2021
1 parent 81cd8f6 commit c60b09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unmarshal_iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func (it *iter) parseNumber(
}

if v.num.negative {
if v.num.u64 > 0x7FFFFFFF {
if v.num.u64 > 0x7FFFFFFFFFFFFFFF {
err = fmt.Errorf("%w, negative integer should not smaller than -0x80000000", ErrNotValidNumberValue)
return
}
Expand Down

0 comments on commit c60b09e

Please sign in to comment.