aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Queiroz <sqmedeiros@gmail.com>2018-05-25 18:19:18 -0300
committerSergio Queiroz <sqmedeiros@gmail.com>2018-05-25 18:19:18 -0300
commit88983b5e10e9c46051748349577e84258f7de4a4 (patch)
tree8a85a5319444055562ebc24e7e8f0a80bee2a24c
parent3cc98f216871411cdfa1fbc35232d3228126ef91 (diff)
downloadlpeglabel-88983b5e10e9c46051748349577e84258f7de4a4.tar.gz
lpeglabel-88983b5e10e9c46051748349577e84258f7de4a4.tar.bz2
lpeglabel-88983b5e10e9c46051748349577e84258f7de4a4.zip
Fixing bug related to a head fail optmization that skips a throw
-rw-r--r--lpcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lpcode.c b/lpcode.c
index c5869e8..6cf2933 100644
--- a/lpcode.c
+++ b/lpcode.c
@@ -308,7 +308,7 @@ static int getfirst (TTree *tree, const Charset *follow, Charset *firstset) {
308 return 0; 308 return 0;
309 } 309 }
310 case TThrow: { /* labeled failure: must always throw the label */ 310 case TThrow: { /* labeled failure: must always throw the label */
311 loopset(i, firstset->cs[i] = follow->cs[i]); /* follow = fullset(?) */ 311 loopset(i, firstset->cs[i] = fullset->cs[i]);
312 return 1; 312 return 1;
313 } 313 }
314 case TChoice: { 314 case TChoice: {