Skip to content

Commit 148b6e5

Browse files
Fix bug: wrong shape pointer for positions array
1 parent 88a23a2 commit 148b6e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dpctl_ext/tensor/libtensor/source/sorting/searchsorted.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ std::pair<sycl::event, sycl::event>
236236
const std::size_t hay_nelems = static_cast<std::size_t>(hay.get_shape(0));
237237

238238
const py::ssize_t *needles_shape_ptr = needles.get_shape_raw();
239-
const py::ssize_t *positions_shape_ptr = needles.get_shape_raw();
239+
const py::ssize_t *positions_shape_ptr = positions.get_shape_raw();
240240

241241
for (int i = 0; (i < needles_nd) && same_shape; ++i) {
242242
const auto needles_sh_i = needles_shape_ptr[i];

0 commit comments

Comments
 (0)