aboutsummaryrefslogtreecommitdiff
path: root/lptree.c
diff options
context:
space:
mode:
Diffstat (limited to 'lptree.c')
-rw-r--r--lptree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lptree.c b/lptree.c
index 19d6b1a..810e267 100644
--- a/lptree.c
+++ b/lptree.c
@@ -1243,7 +1243,7 @@ static int lp_match (lua_State *L) {
1243 if (r == NULL) { /* labeled failure begin */ 1243 if (r == NULL) { /* labeled failure begin */
1244 lua_pushnil(L); 1244 lua_pushnil(L);
1245 lua_pushinteger(L, labelf); 1245 lua_pushinteger(L, labelf);
1246 lua_pushstring(L, sfail); /* Pushing the subject where the failure occurred */ 1246 lua_pushinteger(L, sfail - (s + i) + 1); /* subject position related to the error */
1247 return 3; 1247 return 3;
1248 } /* labeled failure end */ 1248 } /* labeled failure end */
1249 return getcaptures(L, s, r, ptop); 1249 return getcaptures(L, s, r, ptop);