Skip to content

Commit

Permalink
lua 5.3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
soumith committed Feb 3, 2016
1 parent 739e57d commit 68d579a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paths.c
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ luaopen_libpaths(lua_State *L)
lua_newtable(L);
lua_pushvalue(L, -1);
lua_setglobal(L, "paths");
#if LUA_VERSION_NUM == 502
#if LUA_VERSION_NUM >= 502
luaL_setfuncs(L, paths__, 0);
#else
luaL_register(L, NULL, paths__);
Expand Down

0 comments on commit 68d579a

Please sign in to comment.