Skip to content

Commit eea4806

Browse files
committed
Add explicit typecast to size_t
1 parent bc609de commit eea4806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/unittests/accessor/HostAccessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ TEST(HostAccessor, ZeroDimAccessor) {
1111
AccT acc = {data_buf};
1212

1313
ASSERT_EQ(acc.get_size(), sizeof(DataT));
14-
ASSERT_EQ(acc.size(), 1);
14+
ASSERT_EQ(acc.size(), static_cast<size_t>(1));
1515

1616
DataT &ref = acc;
1717
ASSERT_EQ(ref, data);

0 commit comments

Comments
 (0)