Skip to content

Commit

Permalink
Merge pull request morganstanley#145 from smunix/master
Browse files Browse the repository at this point in the history
fix typo that resulted in  an absurd (int > bool) comparisons
  • Loading branch information
salumup authored Jul 17, 2018
2 parents ec332c9 + b8dfdf7 commit 72a5127
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 72a5127

Please sign in to comment.