# HG changeset patch # User Sebastien Jodogne # Date 1745778629 -7200 # Node ID fc8be07bc72a97098e835fa2ffd1c2f847a2e7f3 # Parent 6e995ee3b3e8d55fa8c542620156246363c4fbca relax IsNear() for arm64, ppc64el, riscv64 and s390x, cf. Debian #1104044 diff -r 6e995ee3b3e8 -r fc8be07bc72a OrthancStone/Sources/Toolbox/LinearAlgebra.h --- a/OrthancStone/Sources/Toolbox/LinearAlgebra.h Sat Apr 26 21:56:58 2025 +0200 +++ b/OrthancStone/Sources/Toolbox/LinearAlgebra.h Sun Apr 27 20:30:29 2025 +0200 @@ -178,9 +178,12 @@ inline bool IsNear(double x, double y) { - // As most input is read as single-precision numbers, we take the - // epsilon machine for float32 into consideration to compare numbers - return IsNear(x, y, 10.0 * std::numeric_limits::epsilon()); + /** + * The default threshold was relaxed in releases > 2.6 of the + * Stone Web viewer, as it might be the source of an issue with + * arm64, ppc64el, riscv64, and s390x, cf. Debian #110404 + **/ + return IsNear(x, y, 100.0 * std::numeric_limits::epsilon()); } inline bool IsCloseToZero(double x)