diff options
author | Mike Pall <mike> | 2011-02-02 02:38:59 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-02-02 02:38:59 +0100 |
commit | 2c8945d3e734bb42faa60ef0b97a6115a2b099f7 (patch) | |
tree | e60c74f1aedd55b133b9194746b9c9952dc47a30 /src/lib_string.c | |
parent | 1505d6ffde5e91716ebdd6eeb14860eeedf2bf30 (diff) | |
download | luajit-2c8945d3e734bb42faa60ef0b97a6115a2b099f7.tar.gz luajit-2c8945d3e734bb42faa60ef0b97a6115a2b099f7.tar.bz2 luajit-2c8945d3e734bb42faa60ef0b97a6115a2b099f7.zip |
Use names defined in lualib.h for library registration.
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"); |