@@ -417,14 +417,14 @@ test_bswap(PyObject *self, PyObject *Py_UNUSED(args))
417417 uint16_t u16 = _Py_bswap16 (UINT16_C (0x3412 ));
418418 if (u16 != UINT16_C (0x1234 )) {
419419 PyErr_Format (PyExc_AssertionError ,
420- "_Py_bswap16(0x3412) returns %u " , u16 );
420+ "_Py_bswap16(0x3412) returns %d " , u16 );
421421 return NULL ;
422422 }
423423
424424 uint32_t u32 = _Py_bswap32 (UINT32_C (0x78563412 ));
425425 if (u32 != UINT32_C (0x12345678 )) {
426426 PyErr_Format (PyExc_AssertionError ,
427- "_Py_bswap32(0x78563412) returns %lu " , u32 );
427+ "_Py_bswap32(0x78563412) returns %u " , u32 );
428428 return NULL ;
429429 }
430430
@@ -703,7 +703,7 @@ test_edit_cost(PyObject *self, PyObject *Py_UNUSED(args))
703703
704704static int
705705check_bytes_find (const char * haystack0 , const char * needle0 ,
706- int offset , Py_ssize_t expected )
706+ Py_ssize_t offset , Py_ssize_t expected )
707707{
708708 Py_ssize_t len_haystack = strlen (haystack0 );
709709 Py_ssize_t len_needle = strlen (needle0 );
@@ -1158,7 +1158,7 @@ get_interp_settings(PyObject *self, PyObject *args)
11581158 }
11591159 else {
11601160 PyErr_Format (PyExc_NotImplementedError ,
1161- "%zd " , interpid );
1161+ "%d " , interpid );
11621162 return NULL ;
11631163 }
11641164 assert (interp != NULL );
0 commit comments