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