@@ -110,7 +110,7 @@ Py::Object
110110BufferRegion::set_x (const Py::Tuple &args)
111111{
112112 args.verify_length (1 );
113- size_t x = Py::Int (args[0 ]);
113+ size_t x = ( long ) Py::Int (args[0 ]);
114114 rect.x1 = x;
115115 return Py::Object ();
116116}
@@ -120,7 +120,7 @@ Py::Object
120120BufferRegion::set_y (const Py::Tuple &args)
121121{
122122 args.verify_length (1 );
123- size_t y = Py::Int (args[0 ]);
123+ size_t y = ( long ) Py::Int (args[0 ]);
124124 rect.y1 = y;
125125 return Py::Object ();
126126}
@@ -1736,16 +1736,16 @@ RendererAgg::draw_quad_mesh(const Py::Tuple& args)
17361736
17371737 // segments, trans, clipbox, colors, linewidths, antialiaseds
17381738 GCAgg gc (args[0 ], dpi);
1739- agg::trans_affine master_transform = py_to_agg_transformation_matrix (args[1 ].ptr ());
1740- size_t mesh_width = Py::Int (args[2 ]);
1741- size_t mesh_height = Py::Int (args[3 ]);
1742- Py::Object coordinates = args[4 ];
1743- Py::Object offsets_obj = args[5 ];
1744- agg::trans_affine offset_trans = py_to_agg_transformation_matrix (args[6 ].ptr ());
1745- Py::Object facecolors_obj = args[7 ];
1746- bool antialiased = (bool )Py::Int (args[8 ]);
1747- bool showedges = (bool )Py::Int (args[9 ]);
1748- bool free_edgecolors = false ;
1739+ agg::trans_affine master_transform = py_to_agg_transformation_matrix (args[1 ].ptr ());
1740+ size_t mesh_width = ( long ) Py::Int (args[2 ]);
1741+ size_t mesh_height = ( long ) Py::Int (args[3 ]);
1742+ Py::Object coordinates = args[4 ];
1743+ Py::Object offsets_obj = args[5 ];
1744+ agg::trans_affine offset_trans = py_to_agg_transformation_matrix (args[6 ].ptr ());
1745+ Py::Object facecolors_obj = args[7 ];
1746+ bool antialiased = (bool )Py::Boolean (args[8 ]);
1747+ bool showedges = (bool )Py::Boolean (args[9 ]);
1748+ bool free_edgecolors = false ;
17491749
17501750 QuadMeshGenerator path_generator (mesh_width, mesh_height, coordinates.ptr ());
17511751
0 commit comments