Skip to content

Commit

Permalink
Fix nvcc warning suggestion parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jul 4, 2024
1 parent 08ffd55 commit f2ff040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcudacxx/include/cuda/std/detail/libcxx/include/cmath
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ _LIBCUDACXX_INLINE_VISIBILITY constexpr _Fp __lerp(_Fp __a, _Fp __b, _Fp __t) no
return __b;
}
const _Fp __x = __a + __t * (__b - __a);
if (__t > 1 == __b > __a)
if ((__t > 1) == (__b > __a))
{
return __b < __x ? __x : __b;
}
Expand Down

0 comments on commit f2ff040

Please sign in to comment.