diff options
Diffstat (limited to 'lptree.c')
-rw-r--r-- | lptree.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |