Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/paths.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paths.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/paths.c b/paths.c
index ecfb2b9..a2a0f4c 100644
--- a/paths.c
+++ b/paths.c
@@ -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__);