File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ const char* image_resample__doc__ =
51
51
52
52
53
53
static pybind11::array_t <double > _get_transform_mesh (const pybind11::object& transform,
54
- const ssize_t *dims)
54
+ const pybind11:: ssize_t *dims)
55
55
{
56
56
/* TODO: Could we get away with float, rather than double, arrays here? */
57
57
@@ -62,7 +62,8 @@ static pybind11::array_t<double> _get_transform_mesh(const pybind11::object& tra
62
62
// If attribute doesn't exist, raises Python AttributeError
63
63
auto inverse = transform.attr (" inverted" )();
64
64
65
- pybind11::array_t <double > input_mesh ({dims[0 ]*dims[1 ], 2L });
65
+ pybind11::ssize_t mesh_dims[2 ] = {dims[0 ]*dims[2 ], 2 };
66
+ pybind11::array_t <double > input_mesh (mesh_dims);
66
67
auto p = input_mesh.mutable_data ();
67
68
68
69
for (auto y = 0 ; y < dims[0 ]; ++y) {
You can’t perform that action at this time.
0 commit comments