@@ -449,14 +449,14 @@ PyRendererAgg_draw_gouraud_triangle(PyRendererAgg *self, PyObject *args, PyObjec
449449
450450 if (points.dim (0 ) != 3 || points.dim (1 ) != 2 ) {
451451 PyErr_Format (PyExc_ValueError,
452- " points must be a 3x2 array, got %ldx%ld " ,
452+ " points must be a 3x2 array, got %dx%d " ,
453453 points.dim (0 ), points.dim (1 ));
454454 return NULL ;
455455 }
456456
457457 if (colors.dim (0 ) != 3 || colors.dim (1 ) != 4 ) {
458458 PyErr_Format (PyExc_ValueError,
459- " colors must be a 3x4 array, got %ldx%ld " ,
459+ " colors must be a 3x4 array, got %dx%d " ,
460460 colors.dim (0 ), colors.dim (1 ));
461461 return NULL ;
462462 }
@@ -490,21 +490,21 @@ PyRendererAgg_draw_gouraud_triangles(PyRendererAgg *self, PyObject *args, PyObje
490490
491491 if (points.size () != 0 && (points.dim (1 ) != 3 || points.dim (2 ) != 2 )) {
492492 PyErr_Format (PyExc_ValueError,
493- " points must be a Nx3x2 array, got %ldx%ldx%ld " ,
493+ " points must be a Nx3x2 array, got %dx%dx%d " ,
494494 points.dim (0 ), points.dim (1 ), points.dim (2 ));
495495 return NULL ;
496496 }
497497
498498 if (colors.size () != 0 && (colors.dim (1 ) != 3 || colors.dim (2 ) != 4 )) {
499499 PyErr_Format (PyExc_ValueError,
500- " colors must be a Nx3x4 array, got %ldx%ldx%ld " ,
500+ " colors must be a Nx3x4 array, got %dx%dx%d " ,
501501 colors.dim (0 ), colors.dim (1 ), colors.dim (2 ));
502502 return NULL ;
503503 }
504504
505505 if (points.size () != colors.size ()) {
506506 PyErr_Format (PyExc_ValueError,
507- " points and colors arrays must be the same length, got %ld and %ld " ,
507+ " points and colors arrays must be the same length, got %d and %d " ,
508508 points.dim (0 ), colors.dim (0 ));
509509 return NULL ;
510510 }
0 commit comments