Skip to content

Commit b44af8d

Browse files
committed
compilation issue fixed
1 parent a1fbdde commit b44af8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/xtensor-python/pycontainer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ namespace xt
345345
throw std::runtime_error("Cannot reshape with unknown layout_type.");
346346
}
347347

348-
PyArray_Dims dims({reinterpret_cast<npy_intp*>(shape.data()), static_cast<int>(shape.size())});
348+
PyArray_Dims dims = {reinterpret_cast<npy_intp*>(shape.data()), static_cast<int>(shape.size())};
349349
auto new_ptr = PyArray_Newshape((PyArrayObject*) this->ptr(), &dims, npy_layout);
350350
auto old_ptr = this->ptr();
351351
this->ptr() = new_ptr;

0 commit comments

Comments
 (0)