Skip to content

Commit

Permalink
Fix sort polynom and not polynom
Browse files Browse the repository at this point in the history
  • Loading branch information
fintarin committed Jul 11, 2023
1 parent e04ea37 commit f01d298
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fintamath/expressions/interfaces/IPolynomExpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ int IPolynomExpression::comparatorPolynomAndNonPolynom(const std::shared_ptr<con
return childrenComp.postfix;
}

if (auto res = comparatorVariables(lhs, rhs, isTermsOrderInversed()); res != 0) {
return res;
}

return -1;
}

Expand Down

0 comments on commit f01d298

Please sign in to comment.