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 27eae557..0b1c98a9 100644 --- a/src/lib_string.c +++ b/src/lib_string.c | |||
@@ -791,7 +791,7 @@ LUALIB_API int luaopen_string(lua_State *L) | |||
791 | { | 791 | { |
792 | GCtab *mt; | 792 | GCtab *mt; |
793 | global_State *g; | 793 | global_State *g; |
794 | LJ_LIB_REG(L, string); | 794 | LJ_LIB_REG(L, LUA_STRLIBNAME, string); |
795 | #if defined(LUA_COMPAT_GFIND) | 795 | #if defined(LUA_COMPAT_GFIND) |
796 | lua_getfield(L, -1, "gmatch"); | 796 | lua_getfield(L, -1, "gmatch"); |
797 | lua_setfield(L, -2, "gfind"); | 797 | lua_setfield(L, -2, "gfind"); |