LibRegex: Flush compare tables before entering a permanent inverse state

This commit is contained in:
Ali Mohammad Pur 2022-07-10 11:42:31 +04:30 committed by Andreas Kling
commit 9c5febe800
Notes: sideshowbarker 2024-07-17 09:32:35 +09:00
2 changed files with 46 additions and 38 deletions

View file

@ -459,7 +459,7 @@ ALWAYS_INLINE ExecutionResult OpCode_Compare::execute(MatchInput const& input, M
auto compare_type = (CharacterCompareType)m_bytecode->at(offset++);
if (compare_type == CharacterCompareType::Inverse) {
inverse = true;
inverse = !inverse;
continue;
} else if (compare_type == CharacterCompareType::TemporaryInverse) {