diff --git a/libclc/generic/lib/math/acosh.cl b/libclc/generic/lib/math/acosh.cl index cc10dd48fadb5b..59da5116277445 100644 --- a/libclc/generic/lib/math/acosh.cl +++ b/libclc/generic/lib/math/acosh.cl @@ -117,7 +117,7 @@ _CLC_OVERLOAD _CLC_DEF double acosh(double x) { ret = ux >= 0x7FF0000000000000 ? x : ret; ret = x == 1.0 ? 0.0 : ret; - ret = (ux & SIGNBIT_DP64) != 0UL | x < 1.0 ? as_double(QNANBITPATT_DP64) : ret; + ret = ((ux & SIGNBIT_DP64) != 0UL | x < 1.0) ? as_double(QNANBITPATT_DP64) : ret; return ret; }