@@ -449,14 +449,14 @@ PyRendererAgg_draw_gouraud_triangle(PyRendererAgg *self, PyObject *args, PyObjec
449
449
450
450
if (points.dim (0 ) != 3 || points.dim (1 ) != 2 ) {
451
451
PyErr_Format (PyExc_ValueError,
452
- " points must be a 3x2 array, got %" NPY_INTP_FMT " x% " NPY_INTP_FMT ,
452
+ " points must be a 3x2 array, got %dx%d " ,
453
453
points.dim (0 ), points.dim (1 ));
454
454
return NULL ;
455
455
}
456
456
457
457
if (colors.dim (0 ) != 3 || colors.dim (1 ) != 4 ) {
458
458
PyErr_Format (PyExc_ValueError,
459
- " colors must be a 3x4 array, got %" NPY_INTP_FMT " x% " NPY_INTP_FMT ,
459
+ " colors must be a 3x4 array, got %dx%d " ,
460
460
colors.dim (0 ), colors.dim (1 ));
461
461
return NULL ;
462
462
}
@@ -490,21 +490,21 @@ PyRendererAgg_draw_gouraud_triangles(PyRendererAgg *self, PyObject *args, PyObje
490
490
491
491
if (points.size () != 0 && (points.dim (1 ) != 3 || points.dim (2 ) != 2 )) {
492
492
PyErr_Format (PyExc_ValueError,
493
- " points must be a Nx3x2 array, got %" NPY_INTP_FMT " x% " NPY_INTP_FMT " x% " NPY_INTP_FMT ,
493
+ " points must be a Nx3x2 array, got %dx%dx%d " ,
494
494
points.dim (0 ), points.dim (1 ), points.dim (2 ));
495
495
return NULL ;
496
496
}
497
497
498
498
if (colors.size () != 0 && (colors.dim (1 ) != 3 || colors.dim (2 ) != 4 )) {
499
499
PyErr_Format (PyExc_ValueError,
500
- " colors must be a Nx3x4 array, got %" NPY_INTP_FMT " x% " NPY_INTP_FMT " x% " NPY_INTP_FMT ,
500
+ " colors must be a Nx3x4 array, got %dx%dx%d " ,
501
501
colors.dim (0 ), colors.dim (1 ), colors.dim (2 ));
502
502
return NULL ;
503
503
}
504
504
505
505
if (points.size () != colors.size ()) {
506
506
PyErr_Format (PyExc_ValueError,
507
- " points and colors arrays must be the same length, got %" NPY_INTP_FMT " and %" NPY_INTP_FMT ,
507
+ " points and colors arrays must be the same length, got %d and %d " ,
508
508
points.dim (0 ), colors.dim (0 ));
509
509
return NULL ;
510
510
}
0 commit comments