aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstrlib.c b/lstrlib.c
index ab04b5d5..641c3227 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstrlib.c,v 1.132 2006/04/26 20:41:19 roberto Exp roberto $ 2** $Id: lstrlib.c,v 1.133 2006/06/22 16:12:59 roberto Exp roberto $
3** Standard library for string operations and pattern-matching 3** Standard library for string operations and pattern-matching
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -630,7 +630,7 @@ static void add_value (MatchState *ms, luaL_Buffer *b, const char *s,
630 break; 630 break;
631 } 631 }
632 default: { 632 default: {
633 luaL_argerror(L, 3, "string/function/table expected"); 633 luaL_argerror(L, 3, "string/function/table expected");
634 return; 634 return;
635 } 635 }
636 } 636 }
@@ -639,7 +639,7 @@ static void add_value (MatchState *ms, luaL_Buffer *b, const char *s,
639 lua_pushlstring(L, s, e - s); /* keep original text */ 639 lua_pushlstring(L, s, e - s); /* keep original text */
640 } 640 }
641 else if (!lua_isstring(L, -1)) 641 else if (!lua_isstring(L, -1))
642 luaL_error(L, "invalid replacement value (a %s)", luaL_typename(L, -1)); 642 luaL_error(L, "invalid replacement value (a %s)", luaL_typename(L, -1));
643 luaL_addvalue(b); /* add result to accumulator */ 643 luaL_addvalue(b); /* add result to accumulator */
644} 644}
645 645