diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-06-22 13:12:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-06-22 13:12:59 -0300 |
commit | ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f (patch) | |
tree | fc2ac2bea24400ec815be94ba916b41f6f8cd104 /lstrlib.c | |
parent | 98194db4295726069137d13b8d24fca8cbf892b6 (diff) | |
download | lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.tar.gz lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.tar.bz2 lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.zip |
details
Diffstat (limited to 'lstrlib.c')
-rw-r--r-- | lstrlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { | |||
185 | static int check_capture (MatchState *ms, int l) { | 185 | static 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 | ||