Skip to content

Commit 9ed2bdc

Browse files
[SYCL][LIT] Fix narrowing type conversion for marray in test (#7298)
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
1 parent 6dbeb2e commit 9ed2bdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test/basic_tests/known_identity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ typename std::enable_if<!std::is_same_v<T, half> && !std::is_same_v<T, float> &&
246246
checkMarrayKnownIdentity() {
247247
constexpr marray<T, Num> zeros(T(0));
248248
constexpr marray<T, Num> ones(T(1));
249-
constexpr marray<T, Num> bit_ones(~T(0));
249+
constexpr marray<T, Num> bit_ones(T(~0));
250250

251251
static_assert(has_known_identity<plus<>, marray<T, Num>>::value);
252252
static_assert(

0 commit comments

Comments
 (0)