Skip to content

Commit 9ee0408

Browse files
Fix clang
1 parent 8bd8708 commit 9ee0408

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libcudacxx/test/libcudacxx/cuda/memcpy_async/group_memcpy_async.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,13 @@ __device__ __noinline__ void test_fully_specialized()
146146

147147
for (int i = 0; i < 8; ++i)
148148
{
149-
assert(dest->data[i + 0] == 48 + (i + 0)); // 8 copied items from first group
150-
assert(dest->data[i + 8] == 24 + (i + 8)); // 8 untouched items between
151-
assert(dest->data[i + 16] == 48 + (i + 16)); // 8 copied items from second group
149+
assert(dest->data[i + 0] == T{48 + (i + 0)}); // 8 copied items from first group
150+
assert(dest->data[i + 8] == T{24 + (i + 8)}); // 8 untouched items between
151+
assert(dest->data[i + 16] == T{48 + (i + 16)}); // 8 copied items from second group
152152
}
153153
for (int i = 24; i < storage<T>::size; ++i)
154154
{
155-
assert(dest->data[i] == 24 + i); // untouched items afterwards
155+
assert(dest->data[i] == T{24 + i}); // untouched items afterwards
156156
}
157157
}
158158

0 commit comments

Comments
 (0)