mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[poincare/solver] Fix type ambiguity warning
Change-Id: I9248080520d6fa6430dddb8811dbd0120fc08d79
This commit is contained in:
committed by
Émilie Feral
parent
28d18dd6a5
commit
4bde3ed4b0
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user