We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1fbdde commit b44af8dCopy full SHA for b44af8d
include/xtensor-python/pycontainer.hpp
@@ -345,7 +345,7 @@ namespace xt
345
throw std::runtime_error("Cannot reshape with unknown layout_type.");
346
}
347
348
- PyArray_Dims dims({reinterpret_cast<npy_intp*>(shape.data()), static_cast<int>(shape.size())});
+ PyArray_Dims dims = {reinterpret_cast<npy_intp*>(shape.data()), static_cast<int>(shape.size())};
349
auto new_ptr = PyArray_Newshape((PyArrayObject*) this->ptr(), &dims, npy_layout);
350
auto old_ptr = this->ptr();
351
this->ptr() = new_ptr;
0 commit comments