Skip to content

Commit 17f4331

Browse files
committed
fixes compile with latest luajit 2.1
1 parent cf23c9e commit 17f4331

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

int64.c

+4
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ typedef struct stack_info {
114114
#define LUA_OPLE 2
115115

116116

117+
#if !defined(luaL_newlibtable)
118+
117119
static lua_Integer lua_tointegerx (lua_State *L, int idx, int *isnum) {
118120
lua_Integer n = lua_tointeger(L, idx);
119121
if (isnum) *isnum = (n != 0 || lua_type(L, idx) == LUA_TNUMBER);
@@ -143,6 +145,8 @@ static void *luaL_testudata (lua_State *L, int ud, const char *tname) {
143145
return NULL; /* value is not a userdata with a metatable */
144146
}
145147

148+
#endif
149+
146150
#endif /* } */
147151

148152
/* }================================================================= */

0 commit comments

Comments
 (0)