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 96d5404 commit 8896ea2Copy full SHA for 8896ea2
internal/jsnum/jsnum.go
@@ -50,7 +50,7 @@ func (x Number) toUint32() uint32 {
50
func (n Number) toInt32() int32 {
51
x := float64(n)
52
53
- // Fast path: if the number is the range (-2^31, 2^32), i.e. an SMI,
+ // Fast path: if the number is in the range (-2^31, 2^32), i.e. an SMI,
54
// then we don't need to do any special mapping.
55
if smi := int32(x); float64(smi) == x {
56
return smi
0 commit comments