Skip to content

Commit 528eba8

Browse files
[SYCL] Fix 3rd arg type for select built-in (#9226)
long -> long long
1 parent 637d3d5 commit 528eba8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sycl/include/sycl/builtins.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,8 +2066,9 @@ std::enable_if_t<detail::is_sgentype<T>::value, T> select(T a, T b,
20662066
(SizeT == 4 || SizeT == 8)),
20672067
long, // long and ulong are 32-bit on
20682068
// Windows and 64-bit on Linux
2069-
std::conditional_t<SizeT == 4, int,
2070-
std::conditional_t<SizeT == 8, long, void>>>>>;
2069+
std::conditional_t<
2070+
SizeT == 4, int,
2071+
std::conditional_t<SizeT == 8, long long, void>>>>>;
20712072

20722073
return __sycl_std::__invoke_select<T>(
20732074
a, b, static_cast<get_select_opencl_builtin_c_arg_type>(c));

0 commit comments

Comments
 (0)