Skip to content

Commit 4147a92

Browse files
authored
[ESIMD] Fix minor bug in ballot SFINAE filtering. (#5913)
It lead to the following warning below and allowing unintended types: ...sycl/ext/intel/esimd/math.hpp:685:22: warning: address of function 'detail::is_type<unsigned short, cl::sycl::ext::intel::esimd::ushort, cl::sycl::ext::intel::esimd::uint>' will always evaluate to 'true' [-Wpointer-bool-conversion] std::enable_if_t<detail::is_type<T, ushort, uint> && (N > 0 && N <= 32), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ Signed-off-by: Konstantin S Bobrovsky <[email protected]>
1 parent bc0579a commit 4147a92

File tree

1 file changed

+1
-1
lines changed
  • sycl/include/sycl/ext/intel/esimd

1 file changed

+1
-1
lines changed

sycl/include/sycl/ext/intel/esimd/math.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ pack_mask(simd_mask<N> src0) {
682682
/// the source operand is non-zero and unset otherwise.
683683
template <typename T, int N>
684684
__ESIMD_API
685-
std::enable_if_t<detail::is_type<T, ushort, uint> && (N > 0 && N <= 32),
685+
std::enable_if_t<detail::is_type<T, ushort, uint>() && (N > 0 && N <= 32),
686686
uint>
687687
ballot(simd<T, N> mask) {
688688
simd_mask<N> cmp = (mask != 0);

0 commit comments

Comments
 (0)