@@ -1530,7 +1530,7 @@ map_next(PyObject *self)
15301530 // ValueError: map() argument 3 is shorter than arguments 1-2
15311531 const char * plural = i == 1 ? " " : "s 1-" ;
15321532 PyErr_Format (PyExc_ValueError ,
1533- "map() argument %d is shorter than argument%s%d " ,
1533+ "map() argument %zd is shorter than argument%s%zd " ,
15341534 i + 1 , plural , i );
15351535 goto exit_no_result ;
15361536 }
@@ -1541,7 +1541,7 @@ map_next(PyObject *self)
15411541 Py_DECREF (val );
15421542 const char * plural = i == 1 ? " " : "s 1-" ;
15431543 PyErr_Format (PyExc_ValueError ,
1544- "map() argument %d is longer than argument%s%d " ,
1544+ "map() argument %zd is longer than argument%s%zd " ,
15451545 i + 1 , plural , i );
15461546 goto exit_no_result ;
15471547 }
@@ -3230,7 +3230,7 @@ zip_next(PyObject *self)
32303230 // ValueError: zip() argument 3 is shorter than arguments 1-2
32313231 const char * plural = i == 1 ? " " : "s 1-" ;
32323232 return PyErr_Format (PyExc_ValueError ,
3233- "zip() argument %d is shorter than argument%s%d " ,
3233+ "zip() argument %zd is shorter than argument%s%zd " ,
32343234 i + 1 , plural , i );
32353235 }
32363236 for (i = 1 ; i < tuplesize ; i ++ ) {
@@ -3240,7 +3240,7 @@ zip_next(PyObject *self)
32403240 Py_DECREF (item );
32413241 const char * plural = i == 1 ? " " : "s 1-" ;
32423242 return PyErr_Format (PyExc_ValueError ,
3243- "zip() argument %d is longer than argument%s%d " ,
3243+ "zip() argument %zd is longer than argument%s%zd " ,
32443244 i + 1 , plural , i );
32453245 }
32463246 if (PyErr_Occurred ()) {
0 commit comments