@@ -4894,28 +4894,28 @@ check_basicsize_includes_size_and_offsets(PyTypeObject* type)
48944894
48954895 if (type -> tp_base && type -> tp_base -> tp_basicsize > type -> tp_basicsize ) {
48964896 PyErr_Format (PyExc_TypeError ,
4897- "tp_basicsize for type '%s' (%d ) is too small for base '%s' (%d )" ,
4897+ "tp_basicsize for type '%s' (%zd ) is too small for base '%s' (%zd )" ,
48984898 type -> tp_name , type -> tp_basicsize ,
48994899 type -> tp_base -> tp_name , type -> tp_base -> tp_basicsize );
49004900 return 0 ;
49014901 }
49024902 if (type -> tp_weaklistoffset + (Py_ssize_t )sizeof (PyObject * ) > max ) {
49034903 PyErr_Format (PyExc_TypeError ,
4904- "weaklist offset %d is out of bounds for type '%s' (tp_basicsize = %d )" ,
4904+ "weaklist offset %zd is out of bounds for type '%s' (tp_basicsize = %zd )" ,
49054905 type -> tp_weaklistoffset ,
49064906 type -> tp_name , type -> tp_basicsize );
49074907 return 0 ;
49084908 }
49094909 if (type -> tp_dictoffset + (Py_ssize_t )sizeof (PyObject * ) > max ) {
49104910 PyErr_Format (PyExc_TypeError ,
4911- "dict offset %d is out of bounds for type '%s' (tp_basicsize = %d )" ,
4911+ "dict offset %zd is out of bounds for type '%s' (tp_basicsize = %zd )" ,
49124912 type -> tp_dictoffset ,
49134913 type -> tp_name , type -> tp_basicsize );
49144914 return 0 ;
49154915 }
49164916 if (type -> tp_vectorcall_offset + (Py_ssize_t )sizeof (vectorcallfunc * ) > max ) {
49174917 PyErr_Format (PyExc_TypeError ,
4918- "vectorcall offset %d is out of bounds for type '%s' (tp_basicsize = %d )" ,
4918+ "vectorcall offset %zd is out of bounds for type '%s' (tp_basicsize = %zd )" ,
49194919 type -> tp_vectorcall_offset ,
49204920 type -> tp_name , type -> tp_basicsize );
49214921 return 0 ;
0 commit comments