diff --git a/tests/double-consts.ispc b/tests/double-consts.ispc index 4096aa1c..5f9a66d5 100644 --- a/tests/double-consts.ispc +++ b/tests/double-consts.ispc @@ -13,7 +13,7 @@ export void f_f(uniform float RET[], uniform float aFOO[]) { // All the constants should be equal and if it's evaluated as "float", // then sqrt will evaluate to +inf. - if (d1 == d2 && d1 == d3 && d1 == d4 && d1 == d5 && d1 == d6 + if (d1 == d2 && d1 == d3 && d1 == d4 && d1 == d5 && d1 == d6 && ((float)sqrt(d1)) < 2e20) { RET[programIndex] = a; }