diff options
-rwxr-xr-x | src/uscxml/transform/ChartToC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uscxml/transform/ChartToC.cpp b/src/uscxml/transform/ChartToC.cpp index 98e20de..a254f09 100755 --- a/src/uscxml/transform/ChartToC.cpp +++ b/src/uscxml/transform/ChartToC.cpp @@ -2785,7 +2785,7 @@ void ChartToC::writeFSM(std::ostream& stream) { stream << " } else {" << std::endl; stream << " BIT_SET_AT(k, tmp_states);" << std::endl; stream << " }" << std::endl; - stream << " } else if unlikely(BIT_HAS(j, ctx->machine->states[k].ancestors)) {" << std::endl; + stream << " } else if unlikely(BIT_HAS(j, ctx->machine->states[k].ancestors) && BIT_HAS(k, entry_set)) {" << std::endl; stream << " BIT_SET_AT(k, tmp_states);" << std::endl; stream << " }" << std::endl; stream << " }" << std::endl; |