aboutsummaryrefslogtreecommitdiff
path: root/lpvm.c
diff options
context:
space:
mode:
authorSérgio Queiroz <sqmedeiros@gmail.com>2017-12-26 09:46:38 -0300
committerSérgio Queiroz <sqmedeiros@gmail.com>2017-12-26 09:46:38 -0300
commitf6c68a6313e1700c25a523adde5f92ca1f7f67b6 (patch)
tree1b43605a84caaabb52934620b63b69a8d3a1e7ef /lpvm.c
parent4cd22aa26a5256009d258e81aa10419199decb39 (diff)
downloadlpeglabel-f6c68a6313e1700c25a523adde5f92ca1f7f67b6.tar.gz
lpeglabel-f6c68a6313e1700c25a523adde5f92ca1f7f67b6.tar.bz2
lpeglabel-f6c68a6313e1700c25a523adde5f92ca1f7f67b6.zip
The var that keeps the number of a label should be short instead of byte
Diffstat (limited to 'lpvm.c')
-rw-r--r--lpvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lpvm.c b/lpvm.c
index 20bc545..5234e99 100644
--- a/lpvm.c
+++ b/lpvm.c
@@ -147,7 +147,7 @@ static int removedyncap (lua_State *L, Capture *capture,
147** Opcode interpreter 147** Opcode interpreter
148*/ 148*/
149const char *match (lua_State *L, const char *o, const char *s, const char *e, 149const char *match (lua_State *L, const char *o, const char *s, const char *e,
150 Instruction *op, Capture *capture, int ptop, byte *labelf, const char **sfail) { /* labeled failure */ 150 Instruction *op, Capture *capture, int ptop, short *labelf, const char **sfail) { /* labeled failure */
151 Stack stackbase[INITBACK]; 151 Stack stackbase[INITBACK];
152 Stack *stacklimit = stackbase + INITBACK; 152 Stack *stacklimit = stackbase + INITBACK;
153 Stack *stack = stackbase; /* point to first empty slot in stack */ 153 Stack *stack = stackbase; /* point to first empty slot in stack */