@@ -5184,28 +5184,28 @@ check_basicsize_includes_size_and_offsets(PyTypeObject* type)
51845184
51855185 if (type -> tp_base && type -> tp_base -> tp_basicsize > type -> tp_basicsize ) {
51865186 PyErr_Format (PyExc_TypeError ,
5187- "tp_basicsize for type '%s' (%d ) is too small for base '%s' (%d )" ,
5187+ "tp_basicsize for type '%s' (%zd ) is too small for base '%s' (%zd )" ,
51885188 type -> tp_name , type -> tp_basicsize ,
51895189 type -> tp_base -> tp_name , type -> tp_base -> tp_basicsize );
51905190 return 0 ;
51915191 }
51925192 if (type -> tp_weaklistoffset + (Py_ssize_t )sizeof (PyObject * ) > max ) {
51935193 PyErr_Format (PyExc_TypeError ,
5194- "weaklist offset %d is out of bounds for type '%s' (tp_basicsize = %d )" ,
5194+ "weaklist offset %zd is out of bounds for type '%s' (tp_basicsize = %zd )" ,
51955195 type -> tp_weaklistoffset ,
51965196 type -> tp_name , type -> tp_basicsize );
51975197 return 0 ;
51985198 }
51995199 if (type -> tp_dictoffset + (Py_ssize_t )sizeof (PyObject * ) > max ) {
52005200 PyErr_Format (PyExc_TypeError ,
5201- "dict offset %d is out of bounds for type '%s' (tp_basicsize = %d )" ,
5201+ "dict offset %zd is out of bounds for type '%s' (tp_basicsize = %zd )" ,
52025202 type -> tp_dictoffset ,
52035203 type -> tp_name , type -> tp_basicsize );
52045204 return 0 ;
52055205 }
52065206 if (type -> tp_vectorcall_offset + (Py_ssize_t )sizeof (vectorcallfunc * ) > max ) {
52075207 PyErr_Format (PyExc_TypeError ,
5208- "vectorcall offset %d is out of bounds for type '%s' (tp_basicsize = %d )" ,
5208+ "vectorcall offset %zd is out of bounds for type '%s' (tp_basicsize = %zd )" ,
52095209 type -> tp_vectorcall_offset ,
52105210 type -> tp_name , type -> tp_basicsize );
52115211 return 0 ;
0 commit comments