Skip to content

Commit

Permalink
added explcit conversion from long long to double
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Yankowitz authored and Benjamin Yankowitz committed Feb 14, 2024
1 parent 0f94211 commit c75adc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ auto Expression::FindZeros() const -> std::vector<std::unique_ptr<Expression>>
}
if (newTermsC.size() == termsC.size() && newTermsC.back() == 0) {
termsC = newTermsC;
results.push_back(std::make_unique<Divide<Real>>(Real(mpv), Real(qv)));
results.push_back(std::make_unique<Divide<Real>>(Real(1.0*mpv), Real(1.0*qv)));
do {
termsC.pop_back();
} while (termsC.back() == 0);
Expand Down

0 comments on commit c75adc6

Please sign in to comment.