aboutsummaryrefslogtreecommitdiff
path: root/src/lib_string.c
diff options
context:
space:
mode:
authorMike Pall <mike>2012-09-19 18:14:00 +0200
committerMike Pall <mike>2012-09-19 18:14:00 +0200
commit2d3c1967c7e42c343bd3cb6798d7b7ffe89a5831 (patch)
treeffefb741e12ce1f0c35e6a7f85ebbb456edfab2a /src/lib_string.c
parent16d8c83743b2b356c0efc682e33e80b106c157ef (diff)
downloadluajit-2d3c1967c7e42c343bd3cb6798d7b7ffe89a5831.tar.gz
luajit-2d3c1967c7e42c343bd3cb6798d7b7ffe89a5831.tar.bz2
luajit-2d3c1967c7e42c343bd3cb6798d7b7ffe89a5831.zip
Disable LUA_COMPAT_GFIND and LUA_COMPAT_MOD in Lua 5.2 mode.
Diffstat (limited to '')
-rw-r--r--src/lib_string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib_string.c b/src/lib_string.c
index 6d0b0a04..d894f9f4 100644
--- a/src/lib_string.c
+++ b/src/lib_string.c
@@ -857,7 +857,7 @@ LUALIB_API int luaopen_string(lua_State *L)
857 GCtab *mt; 857 GCtab *mt;
858 global_State *g; 858 global_State *g;
859 LJ_LIB_REG(L, LUA_STRLIBNAME, string); 859 LJ_LIB_REG(L, LUA_STRLIBNAME, string);
860#if defined(LUA_COMPAT_GFIND) 860#if defined(LUA_COMPAT_GFIND) && !LJ_52
861 lua_getfield(L, -1, "gmatch"); 861 lua_getfield(L, -1, "gmatch");
862 lua_setfield(L, -2, "gfind"); 862 lua_setfield(L, -2, "gfind");
863#endif 863#endif