Skip to content

Commit

Permalink
libclc: Add parentheses to silence warning
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenm committed Dec 29, 2022
1 parent 0ec51a4 commit 4ddba3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libclc/generic/lib/math/acosh.cl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4ddba3a

Please sign in to comment.