aboutsummaryrefslogtreecommitdiff
path: root/lpvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lpvm.c')
-rw-r--r--lpvm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lpvm.c b/lpvm.c
index 52c14ae..813d3fb 100644
--- a/lpvm.c
+++ b/lpvm.c
@@ -296,7 +296,8 @@ const char *match (lua_State *L, const char *o, const char *s, const char *e,
296 CapState cs; 296 CapState cs;
297 int rem, res, n; 297 int rem, res, n;
298 int fr = lua_gettop(L) + 1; /* stack index of first result */ 298 int fr = lua_gettop(L) + 1; /* stack index of first result */
299 cs.s = o; cs.L = L; cs.ocap = capture; cs.ptop = ptop; 299 cs.reclevel = 0; cs.L = L;
300 cs.s = o; cs.ocap = capture; cs.ptop = ptop;
300 n = runtimecap(&cs, capture + captop, s, &rem); /* call function */ 301 n = runtimecap(&cs, capture + captop, s, &rem); /* call function */
301 captop -= n; /* remove nested captures */ 302 captop -= n; /* remove nested captures */
302 ndyncap -= rem; /* update number of dynamic captures */ 303 ndyncap -= rem; /* update number of dynamic captures */