diff options
author | robot-piglet <[email protected]> | 2024-04-05 10:40:30 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2024-04-05 10:49:30 +0300 |
commit | 38d88c60a416d958a33a03078dd5b85e2c6aac21 (patch) | |
tree | 75439452ab5e0c08557e02f42c66616fc88aa0d1 | |
parent | 6484550aa9842e870619262b6ff32e2e35820210 (diff) |
Intermediate changes
-rw-r--r-- | contrib/libs/apache/arrow/cpp/src/arrow/python/numpy_internal.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/libs/apache/arrow/cpp/src/arrow/python/numpy_internal.h b/contrib/libs/apache/arrow/cpp/src/arrow/python/numpy_internal.h index 973f577cb13..50d1a0fcb75 100644 --- a/contrib/libs/apache/arrow/cpp/src/arrow/python/numpy_internal.h +++ b/contrib/libs/apache/arrow/cpp/src/arrow/python/numpy_internal.h @@ -43,12 +43,11 @@ class Ndarray1DIndexer { explicit Ndarray1DIndexer(PyArrayObject* arr) : Ndarray1DIndexer() { arr_ = arr; DCHECK_EQ(1, PyArray_NDIM(arr)) << "Only works with 1-dimensional arrays"; - Py_INCREF(arr); data_ = reinterpret_cast<uint8_t*>(PyArray_DATA(arr)); stride_ = PyArray_STRIDES(arr)[0]; } - ~Ndarray1DIndexer() { Py_XDECREF(arr_); } + ~Ndarray1DIndexer() = default; int64_t size() const { return PyArray_SIZE(arr_); } |