Skip to content

Commit 8928b2f

Browse files
committed
fix LUA_NUMBER_MAX_SAFE_INTEGER
1 parent 24ba761 commit 8928b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

number.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"golang.org/x/exp/constraints"
1111
)
1212

13-
const LUA_NUMBER_MAX_SAFE_INTEGER int64 = (2 ^ 53) - 1
13+
const LuaNumberMaxSafeInteger int64 = (1 << 53) - 1
1414

1515
func pushNumber(L State, n LUA_NUMBER) {
1616
C.lua_pushnumber_wrap(L.c(), C.double(n))

0 commit comments

Comments
 (0)