@@ -310,12 +310,12 @@ static PyObject *Py_point_in_path_collection(PyObject *self, PyObject *args, PyO
310310 numpy::array_view<const double , 3 > transforms;
311311 numpy::array_view<const double , 2 > offsets;
312312 agg::trans_affine offset_trans;
313- int filled;
313+ bool filled;
314314 e_offset_position offset_position;
315315 std::vector<int > result;
316316
317317 if (!PyArg_ParseTuple (args,
318- " dddO&OO&O&O&iO &:point_in_path_collection" ,
318+ " dddO&OO&O&O&O&O &:point_in_path_collection" ,
319319 &x,
320320 &y,
321321 &radius,
@@ -328,6 +328,7 @@ static PyObject *Py_point_in_path_collection(PyObject *self, PyObject *args, PyO
328328 &offsets,
329329 &convert_trans_affine,
330330 &offset_trans,
331+ &convert_bool,
331332 &filled,
332333 &convert_offset_position,
333334 &offset_position)) {
@@ -402,15 +403,16 @@ static PyObject *Py_clip_path_to_rect(PyObject *self, PyObject *args, PyObject *
402403{
403404 py::PathIterator path;
404405 agg::rect_d rect;
405- int inside;
406+ bool inside;
406407 std::vector<Polygon> result;
407408
408409 if (!PyArg_ParseTuple (args,
409- " O&O&i :clip_path_to_rect" ,
410+ " O&O&O& :clip_path_to_rect" ,
410411 &convert_path,
411412 &path,
412413 &convert_rect,
413414 &rect,
415+ &convert_bool,
414416 &inside)) {
415417 return NULL ;
416418 }
@@ -527,20 +529,21 @@ static PyObject *Py_path_intersects_rectangle(PyObject *self, PyObject *args, Py
527529{
528530 py::PathIterator path;
529531 double rect_x1, rect_y1, rect_x2, rect_y2;
530- int filled = 0 ;
532+ bool filled = false ;
531533 const char *names[] = { " path" , " rect_x1" , " rect_y1" , " rect_x2" , " rect_y2" , " filled" , NULL };
532534 bool result;
533535
534536 if (!PyArg_ParseTupleAndKeywords (args,
535537 kwds,
536- " O&dddd|i :path_intersects_rectangle" ,
538+ " O&dddd|O& :path_intersects_rectangle" ,
537539 (char **)names,
538540 &convert_path,
539541 &path,
540542 &rect_x1,
541543 &rect_y1,
542544 &rect_x2,
543545 &rect_y2,
546+ &convert_bool,
544547 &filled)) {
545548 return NULL ;
546549 }
@@ -594,28 +597,30 @@ static PyObject *Py_cleanup_path(PyObject *self, PyObject *args, PyObject *kwds)
594597{
595598 py::PathIterator path;
596599 agg::trans_affine trans;
597- int remove_nans;
600+ bool remove_nans;
598601 agg::rect_d clip_rect;
599602 e_snap_mode snap_mode;
600603 double stroke_width;
601604 PyObject *simplifyobj;
602605 bool simplify = false ;
603- int return_curves;
606+ bool return_curves;
604607 SketchParams sketch;
605608
606609 if (!PyArg_ParseTuple (args,
607- " O&O&iO &O&dOiO &:cleanup_path" ,
610+ " O&O&O &O&O&dOO&O &:cleanup_path" ,
608611 &convert_path,
609612 &path,
610613 &convert_trans_affine,
611614 &trans,
615+ &convert_bool,
612616 &remove_nans,
613617 &convert_rect,
614618 &clip_rect,
615619 &convert_snap,
616620 &snap_mode,
617621 &stroke_width,
618622 &simplifyobj,
623+ &convert_bool,
619624 &return_curves,
620625 &convert_sketch_params,
621626 &sketch)) {
@@ -675,14 +680,14 @@ static PyObject *Py_convert_to_string(PyObject *self, PyObject *args, PyObject *
675680 int precision;
676681 PyObject *codesobj;
677682 char *codes[5 ];
678- int postfix;
683+ bool postfix;
679684 char *buffer = NULL ;
680685 size_t buffersize;
681686 PyObject *result;
682687 int status;
683688
684689 if (!PyArg_ParseTuple (args,
685- " O&O&O&OO&iOi :convert_to_string" ,
690+ " O&O&O&OO&iOO& :convert_to_string" ,
686691 &convert_path,
687692 &path,
688693 &convert_trans_affine,
@@ -694,6 +699,7 @@ static PyObject *Py_convert_to_string(PyObject *self, PyObject *args, PyObject *
694699 &sketch,
695700 &precision,
696701 &codesobj,
702+ &convert_bool,
697703 &postfix)) {
698704 return NULL ;
699705 }
@@ -727,7 +733,7 @@ static PyObject *Py_convert_to_string(PyObject *self, PyObject *args, PyObject *
727733 CALL_CPP (" convert_to_string" ,
728734 (status = convert_to_string (
729735 path, trans, cliprect, simplify, sketch,
730- precision, codes, ( bool ) postfix, &buffer,
736+ precision, codes, postfix, &buffer,
731737 &buffersize)));
732738
733739 if (status) {
0 commit comments