summaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-06-22 13:12:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-06-22 13:12:59 -0300
commitee41bc03ab0af1b1d0c4a90e172b05cda3dac38f (patch)
treefc2ac2bea24400ec815be94ba916b41f6f8cd104 /lstrlib.c
parent98194db4295726069137d13b8d24fca8cbf892b6 (diff)
downloadlua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.tar.gz
lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.tar.bz2
lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.zip
details
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 b6eda2cf..ab04b5d5 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstrlib.c,v 1.131 2006/04/12 20:13:52 roberto Exp roberto $ 2** $Id: lstrlib.c,v 1.132 2006/04/26 20:41:19 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*/
@@ -185,7 +185,7 @@ typedef struct MatchState {
185static int check_capture (MatchState *ms, int l) { 185static int check_capture (MatchState *ms, int l) {
186 l -= '1'; 186 l -= '1';
187 if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED) 187 if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED)
188 return luaL_error(ms->L, "invalid capture index"); 188 return luaL_error(ms->L, "invalid capture index %%%d", l + 1);
189 return l; 189 return l;
190} 190}
191 191