We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ac6fc3 commit 00d7206Copy full SHA for 00d7206
1 file changed
src/cpp/h5cpp/common/io.hpp
@@ -114,7 +114,7 @@ boost::python::object read(const IoType &instance)
114
if(instance.dataspace().type()==hdf5::dataspace::Type::Simple)
115
dims = numpy::Dimensions(hdf5::dataspace::Simple(instance.dataspace()).current_dimensions());
116
117
- PyArray_Dims py_dims{dims.data(),dims.size()};
+ PyArray_Dims py_dims{dims.data(),static_cast<int>(dims.size())};
118
119
array = object(handle<>(PyArray_Newshape(array_ptr,&py_dims,NPY_CORDER)));
120
}
0 commit comments