Skip to content

Commit 449f69b

Browse files
committed
fix
1 parent b18f45e commit 449f69b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sycl/include/sycl/accessor.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,8 +1737,7 @@ class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(accessor) accessor :
17371737
#endif
17381738
() const {
17391739
const size_t LinearIndex = getLinearIndex(id<AdjustedDim>());
1740-
return Test(multi_ptr<DataT, AS, access::decorated::yes>(getQualifiedPtr() +
1741-
LinearIndex));
1740+
return multi_ptr<DataT, AS, access::decorated::yes>(getQualifiedPtr() + LinearIndex);
17421741
}
17431742

17441743
template <int Dims = Dimensions,

0 commit comments

Comments
 (0)