@@ -79,7 +79,7 @@ static PyObject *Py_points_in_path(PyObject *self, PyObject *args, PyObject *kwd
79
79
return NULL ;
80
80
}
81
81
82
- npy_intp dims[] = { points.size () };
82
+ npy_intp dims[] = { (npy_intp) points.size () };
83
83
numpy::array_view<bool , 1 > results (dims);
84
84
85
85
CALL_CPP (" points_in_path" , (points_in_path (points, r, path, trans, results)));
@@ -138,7 +138,7 @@ static PyObject *Py_points_on_path(PyObject *self, PyObject *args, PyObject *kwd
138
138
return NULL ;
139
139
}
140
140
141
- npy_intp dims[] = { points.size () };
141
+ npy_intp dims[] = { (npy_intp) points.size () };
142
142
numpy::array_view<bool , 1 > results (dims);
143
143
144
144
CALL_CPP (" points_on_path" , (points_on_path (points, r, path, trans, results)));
@@ -437,15 +437,15 @@ static PyObject *Py_affine_transform(PyObject *self, PyObject *args, PyObject *k
437
437
438
438
try {
439
439
numpy::array_view<double , 2 > vertices (vertices_obj);
440
- npy_intp dims[] = { vertices.size (), 2 };
440
+ npy_intp dims[] = { (npy_intp) vertices.size (), 2 };
441
441
numpy::array_view<double , 2 > result (dims);
442
442
CALL_CPP (" affine_transform" , (affine_transform_2d (vertices, trans, result)));
443
443
return result.pyobj ();
444
444
} catch (py::exception ) {
445
445
PyErr_Clear ();
446
446
try {
447
447
numpy::array_view<double , 1 > vertices (vertices_obj);
448
- npy_intp dims[] = { vertices.size () };
448
+ npy_intp dims[] = { (npy_intp) vertices.size () };
449
449
numpy::array_view<double , 1 > result (dims);
450
450
CALL_CPP (" affine_transform" , (affine_transform_1d (vertices, trans, result)));
451
451
return result.pyobj ();
0 commit comments