Add check to clang 6.0 compiler bug workaround

Extending on b68222e4e7 to ensure that it still
has the exact same behaviour as the previous code, as discussed with @hpvb.

(cherry picked from commit 03e11c13bf)
This commit is contained in:
Rémi Verschelde 2018-07-26 17:25:00 +02:00
parent 077f28b146
commit 849ff42496

View file

@ -346,7 +346,9 @@ public:
//use the smallest depth
min_B = -min_B;
if (min_B < 0.0) { // could be +0.0, we don't want it to become -0.0
min_B = -min_B;
}
if (max_B < min_B) {
if (max_B < best_depth) {