@@ -108,7 +108,7 @@ Py::Object
108108BufferRegion::set_x (const Py::Tuple &args)
109109{
110110 args.verify_length (1 );
111- size_t x = Py::Int (args[0 ]);
111+ size_t x = ( long ) Py::Int (args[0 ]);
112112 rect.x1 = x;
113113 return Py::Object ();
114114}
@@ -118,7 +118,7 @@ Py::Object
118118BufferRegion::set_y (const Py::Tuple &args)
119119{
120120 args.verify_length (1 );
121- size_t y = Py::Int (args[0 ]);
121+ size_t y = ( long ) Py::Int (args[0 ]);
122122 rect.y1 = y;
123123 return Py::Object ();
124124}
@@ -1734,16 +1734,16 @@ RendererAgg::draw_quad_mesh(const Py::Tuple& args)
17341734
17351735 // segments, trans, clipbox, colors, linewidths, antialiaseds
17361736 GCAgg gc (args[0 ], dpi);
1737- agg::trans_affine master_transform = py_to_agg_transformation_matrix (args[1 ].ptr ());
1738- size_t mesh_width = Py::Int (args[2 ]);
1739- size_t mesh_height = Py::Int (args[3 ]);
1740- Py::Object coordinates = args[4 ];
1741- Py::Object offsets_obj = args[5 ];
1742- agg::trans_affine offset_trans = py_to_agg_transformation_matrix (args[6 ].ptr ());
1743- Py::Object facecolors_obj = args[7 ];
1744- bool antialiased = (bool )Py::Int (args[8 ]);
1745- bool showedges = (bool )Py::Int (args[9 ]);
1746- bool free_edgecolors = false ;
1737+ agg::trans_affine master_transform = py_to_agg_transformation_matrix (args[1 ].ptr ());
1738+ size_t mesh_width = ( long ) Py::Int (args[2 ]);
1739+ size_t mesh_height = ( long ) Py::Int (args[3 ]);
1740+ Py::Object coordinates = args[4 ];
1741+ Py::Object offsets_obj = args[5 ];
1742+ agg::trans_affine offset_trans = py_to_agg_transformation_matrix (args[6 ].ptr ());
1743+ Py::Object facecolors_obj = args[7 ];
1744+ bool antialiased = (bool )Py::Boolean (args[8 ]);
1745+ bool showedges = (bool )Py::Boolean (args[9 ]);
1746+ bool free_edgecolors = false ;
17471747
17481748 QuadMeshGenerator path_generator (mesh_width, mesh_height, coordinates.ptr ());
17491749
0 commit comments