8000
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 2db5711 commit 22a0788Copy full SHA for 22a0788
src/_image_wrapper.cpp
@@ -51,7 +51,7 @@ const char* image_resample__doc__ =
51
52
53
static pybind11::array_t<double> _get_transform_mesh(const pybind11::object& transform,
54
- const ssize_t *dims)
+ const pybind11::ssize_t *dims)
55
{
56
/* TODO: Could we get away with float, rather than double, arrays here? */
57
@@ -62,7 +62,8 @@ static pybind11::array_t<double> _get_transform_mesh(const pybind11::object& tra
62
// If attribute doesn't exist, raises Python AttributeError
63
auto inverse = transform.attr("inverted")();
64
65
- pybind11::array_t<double> input_mesh({dims[0]*dims[1], 2L});
+ pybind11::ssize_t mesh_dims[2] = {dims[0]*dims[2], 2};
66
+ pybind11::array_t<double> input_mesh(mesh_dims);
67
auto p = input_mesh.mutable_data();
68
69
for (auto y = 0; y < dims[0]; ++y) {
0 commit comments