Skip to content

Commit

Permalink
fixes compile with latest luajit 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lostsnow committed Jun 6, 2017
1 parent cf23c9e commit 17f4331
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions int64.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ typedef struct stack_info {
#define LUA_OPLE 2


#if !defined(luaL_newlibtable)

static lua_Integer lua_tointegerx (lua_State *L, int idx, int *isnum) {
lua_Integer n = lua_tointeger(L, idx);
if (isnum) *isnum = (n != 0 || lua_type(L, idx) == LUA_TNUMBER);
Expand Down Expand Up @@ -143,6 +145,8 @@ static void *luaL_testudata (lua_State *L, int ud, const char *tname) {
return NULL; /* value is not a userdata with a metatable */
}

#endif

#endif /* } */

/* }================================================================= */
Expand Down

0 comments on commit 17f4331

Please sign in to comment.