@@ -79,7 +79,7 @@ static PyObject *Py_points_in_path(PyObject *self, PyObject *args, PyObject *kwd
7979 return NULL ;
8080 }
8181
82- npy_intp dims[] = { points.size () };
82+ npy_intp dims[] = { (npy_intp) points.size () };
8383 numpy::array_view<bool , 1 > results (dims);
8484
8585 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
138138 return NULL ;
139139 }
140140
141- npy_intp dims[] = { points.size () };
141+ npy_intp dims[] = { (npy_intp) points.size () };
142142 numpy::array_view<bool , 1 > results (dims);
143143
144144 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
437437
438438 try {
439439 numpy::array_view<double , 2 > vertices (vertices_obj);
440- npy_intp dims[] = { vertices.size (), 2 };
440+ npy_intp dims[] = { (npy_intp) vertices.size (), 2 };
441441 numpy::array_view<double , 2 > result (dims);
442442 CALL_CPP (" affine_transform" , (affine_transform_2d (vertices, trans, result)));
443443 return result.pyobj ();
444444 } catch (py::exception) {
445445 PyErr_Clear ();
446446 try {
447447 numpy::array_view<double , 1 > vertices (vertices_obj);
448- npy_intp dims[] = { vertices.size () };
448+ npy_intp dims[] = { (npy_intp) vertices.size () };
449449 numpy::array_view<double , 1 > result (dims);
450450 CALL_CPP (" affine_transform" , (affine_transform_1d (vertices, trans, result)));
451451 return result.pyobj ();
@@ -730,17 +730,12 @@ extern "C" {
730730 {NULL }
731731 };
732732
733- struct module_state
734- {
735- int _dummy;
736- };
737-
738733#if PY3K
739734 static struct PyModuleDef moduledef = {
740735 PyModuleDef_HEAD_INIT,
741736 " _path" ,
742737 NULL ,
743- sizeof ( struct module_state ) ,
738+ 0 ,
744739 module_functions,
745740 NULL ,
746741 NULL ,
0 commit comments