Skip to content

Commit 266515a

Browse files
authored
[SYCL] Fix a typo in accessor::get_range method (#4556)
Signed-off-by: rdeodhar <[email protected]>
1 parent 501acc6 commit 266515a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/sycl/accessor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ class image_accessor
592592
template <int Dims = Dimensions, typename = detail::enable_if_t<Dims == 3>>
593593
range<3> get_range() const {
594594
cl_int3 Range = getRangeInternal();
595-
return range<3>(Range[0], Range[1], Range[3]);
595+
return range<3>(Range[0], Range[1], Range[2]);
596596
}
597597

598598
#else

0 commit comments

Comments
 (0)