diff options
Diffstat (limited to 'lstrlib.c')
-rw-r--r-- | lstrlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -857,9 +857,9 @@ static int str_gsub (lua_State *L) { | |||
857 | lua_Integer n = 0; /* replacement count */ | 857 | lua_Integer n = 0; /* replacement count */ |
858 | MatchState ms; | 858 | MatchState ms; |
859 | luaL_Buffer b; | 859 | luaL_Buffer b; |
860 | luaL_argcheck(L, tr == LUA_TNUMBER || tr == LUA_TSTRING || | 860 | luaL_argexpected(L, tr == LUA_TNUMBER || tr == LUA_TSTRING || |
861 | tr == LUA_TFUNCTION || tr == LUA_TTABLE, 3, | 861 | tr == LUA_TFUNCTION || tr == LUA_TTABLE, 3, |
862 | "string/function/table expected"); | 862 | "string/function/table"); |
863 | luaL_buffinit(L, &b); | 863 | luaL_buffinit(L, &b); |
864 | if (anchor) { | 864 | if (anchor) { |
865 | p++; lp--; /* skip anchor character */ | 865 | p++; lp--; /* skip anchor character */ |