From: <eri...@us...> - 2017-12-04 08:56:40
|
Revision: 11338 http://sourceforge.net/p/oorexx/code-0/11338 Author: erich_st Date: 2017-12-04 08:56:37 +0000 (Mon, 04 Dec 2017) Log Message: ----------- fix hang on Linux caused by [r11337] Modified Paths: -------------- main/trunk/extensions/rxregexp/automaton.cpp Modified: main/trunk/extensions/rxregexp/automaton.cpp =================================================================== --- main/trunk/extensions/rxregexp/automaton.cpp 2017-12-03 11:50:53 UTC (rev 11337) +++ main/trunk/extensions/rxregexp/automaton.cpp 2017-12-04 08:56:37 UTC (rev 11338) @@ -427,7 +427,8 @@ setState(t1, EPSILON, t2, t2); // we also require an extra closing epsilon transition to make "(A|B)x*" work - setState(freeState++, EPSILON, freeState, freeState); + setState(freeState, EPSILON, freeState + 1, freeState + 1); + freeState++; if (regexp[currentPos] == ')') currentPos++; else throw E_MISSING_PAREN_CLOSE; |