aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstrlib.c b/lstrlib.c
index a635e9d4..e9c60c0f 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -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 */