diff regexParser/subsetConstraction.cc @ 209:959f8c00da17

fix charClassStackPop()
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Sun, 27 Dec 2015 18:57:05 +0900
parents 2ec95755238e
children bc596e357a52
line wrap: on
line diff
--- a/regexParser/subsetConstraction.cc	Sun Dec 27 18:46:08 2015 +0900
+++ b/regexParser/subsetConstraction.cc	Sun Dec 27 18:57:05 2015 +0900
@@ -142,9 +142,9 @@
 
 CharClassStackPtr charClassStackPop(CharClassWalkerPtr walk) {
     CharClassStackPtr prev = walk->stack->next;
+    walk->turn = walk->stack->turn;
     free(walk->stack);
     walk->stack = prev;
-    walk->turn = prev->turn;
     return prev;
 }