@@ -125,14 +125,14 @@ test_bswap(PyObject *self, PyObject *Py_UNUSED(args))
125125 uint16_t u16 = _Py_bswap16 (UINT16_C (0x3412 ));
126126 if (u16 != UINT16_C (0x1234 )) {
127127 PyErr_Format (PyExc_AssertionError ,
128- "_Py_bswap16(0x3412) returns %u " , u16 );
128+ "_Py_bswap16(0x3412) returns %d " , u16 );
129129 return NULL ;
130130 }
131131
132132 uint32_t u32 = _Py_bswap32 (UINT32_C (0x78563412 ));
133133 if (u32 != UINT32_C (0x12345678 )) {
134134 PyErr_Format (PyExc_AssertionError ,
135- "_Py_bswap32(0x78563412) returns %lu " , u32 );
135+ "_Py_bswap32(0x78563412) returns %u " , u32 );
136136 return NULL ;
137137 }
138138
@@ -446,7 +446,7 @@ test_edit_cost(PyObject *self, PyObject *Py_UNUSED(args))
446446
447447static int
448448check_bytes_find (const char * haystack0 , const char * needle0 ,
449- int offset , Py_ssize_t expected )
449+ Py_ssize_t offset , Py_ssize_t expected )
450450{
451451 Py_ssize_t len_haystack = strlen (haystack0 );
452452 Py_ssize_t len_needle = strlen (needle0 );
@@ -864,7 +864,7 @@ get_interp_settings(PyObject *self, PyObject *args)
864864 }
865865 else {
866866 PyErr_Format (PyExc_NotImplementedError ,
867- "%zd " , interpid );
867+ "%d " , interpid );
868868 return NULL ;
869869 }
870870 assert (interp != NULL );
0 commit comments