[poincare/solver] Fix type ambiguity warning

Change-Id: I9248080520d6fa6430dddb8811dbd0120fc08d79
This commit is contained in:
Gabriel Ozouf
2020-09-22 12:43:13 +02:00
committed by Émilie Feral
parent 28d18dd6a5
commit 4bde3ed4b0

View File

@@ -197,12 +197,12 @@ Coordinate2D<double> Solver::IncreasingFunctionRoot(double ax, double bx, double
* it instead, otherwise, we reached the most precise result possible. */
if (currentAbscissa == min) {
if (currentAbscissa != -INFINITY) {
currentAbscissa = std::nextafter(currentAbscissa, INFINITY);
currentAbscissa = std::nextafter(currentAbscissa, static_cast<double>(INFINITY));
}
}
if (currentAbscissa == max) {
if (currentAbscissa != INFINITY) {
currentAbscissa = std::nextafter(currentAbscissa, -INFINITY);
currentAbscissa = std::nextafter(currentAbscissa, -static_cast<double>(INFINITY));
}
}
if (currentAbscissa == min || currentAbscissa == max) {