diff options
Diffstat (limited to 'src/lib_string.c')
-rw-r--r-- | src/lib_string.c | 2 |
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 |