@@ -459,14 +459,14 @@ PyRendererAgg_draw_gouraud_triangle(PyRendererAgg *self, PyObject *args, PyObjec
459459
460460 if (points.dim (0 ) != 3 || points.dim (1 ) != 2 ) {
461461 PyErr_Format (PyExc_ValueError,
462- " points must be a 3x2 array, got %dx%d " ,
462+ " points must be a 3x2 array, got %" NPY_INTP_FMT " x% " NPY_INTP_FMT ,
463463 points.dim (0 ), points.dim (1 ));
464464 return NULL ;
465465 }
466466
467467 if (colors.dim (0 ) != 3 || colors.dim (1 ) != 4 ) {
468468 PyErr_Format (PyExc_ValueError,
469- " colors must be a 3x4 array, got %dx%d " ,
469+ " colors must be a 3x4 array, got %" NPY_INTP_FMT " x% " NPY_INTP_FMT ,
470470 colors.dim (0 ), colors.dim (1 ));
471471 return NULL ;
472472 }
@@ -500,21 +500,21 @@ PyRendererAgg_draw_gouraud_triangles(PyRendererAgg *self, PyObject *args, PyObje
500500
501501 if (points.size () != 0 && (points.dim (1 ) != 3 || points.dim (2 ) != 2 )) {
502502 PyErr_Format (PyExc_ValueError,
503- " points must be a Nx3x2 array, got %dx%dx%d " ,
503+ " points must be a Nx3x2 array, got %" NPY_INTP_FMT " x% " NPY_INTP_FMT " x% " NPY_INTP_FMT ,
504504 points.dim (0 ), points.dim (1 ), points.dim (2 ));
505505 return NULL ;
506506 }
507507
508508 if (colors.size () != 0 && (colors.dim (1 ) != 3 || colors.dim (2 ) != 4 )) {
509509 PyErr_Format (PyExc_ValueError,
510- " colors must be a Nx3x4 array, got %dx%dx%d " ,
510+ " colors must be a Nx3x4 array, got %" NPY_INTP_FMT " x% " NPY_INTP_FMT " x% " NPY_INTP_FMT ,
511511 colors.dim (0 ), colors.dim (1 ), colors.dim (2 ));
512512 return NULL ;
513513 }
514514
515515 if (points.size () != colors.size ()) {
516516 PyErr_Format (PyExc_ValueError,
517- " points and colors arrays must be the same length, got %d and %d " ,
517+ " points and colors arrays must be the same length, got %" NPY_INTP_FMT " and %" NPY_INTP_FMT ,
518518 points.dim (0 ), colors.dim (0 ));
519519 return NULL ;
520520 }
0 commit comments