Skip to content

Commit

Permalink
fix typo that resulted in int > bool comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
smunix committed Jul 17, 2018
1 parent ec332c9 commit b8dfdf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hobbes/lang/pat/regex.C
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ state dfaState(const cc* c, const NFA& nfa, const EpsClosure& ec, Nss2Ds* nss2ds
state result = dfa->size();
dfa->resize(dfa->size() + 1);

if (c->throwOnHugeRegexDFA() and c->regexDFAOverNFAMaxRatio() > 0 and c->regexDFAOverNFAMaxRatio() > (dfa->size() / nfa.size() > size_t(c->regexDFAOverNFAMaxRatio()))) {
if (c->throwOnHugeRegexDFA() and c->regexDFAOverNFAMaxRatio() > 0 and (dfa->size() / nfa.size() > size_t(c->regexDFAOverNFAMaxRatio()))) {
throw std::runtime_error("regexes DFA over NFA Max ratio was breached");
}

Expand Down

0 comments on commit b8dfdf7

Please sign in to comment.