@@ -4414,28 +4414,28 @@ check_basicsize_includes_size_and_offsets(PyTypeObject* type)
44144414
44154415 if (type -> tp_base && type -> tp_base -> tp_basicsize > type -> tp_basicsize ) {
44164416 PyErr_Format (PyExc_TypeError ,
4417- "tp_basicsize for type '%s' (%d ) is too small for base '%s' (%d )" ,
4417+ "tp_basicsize for type '%s' (%zd ) is too small for base '%s' (%zd )" ,
44184418 type -> tp_name , type -> tp_basicsize ,
44194419 type -> tp_base -> tp_name , type -> tp_base -> tp_basicsize );
44204420 return 0 ;
44214421 }
44224422 if (type -> tp_weaklistoffset + (Py_ssize_t )sizeof (PyObject * ) > max ) {
44234423 PyErr_Format (PyExc_TypeError ,
4424- "weaklist offset %d is out of bounds for type '%s' (tp_basicsize = %d )" ,
4424+ "weaklist offset %zd is out of bounds for type '%s' (tp_basicsize = %zd )" ,
44254425 type -> tp_weaklistoffset ,
44264426 type -> tp_name , type -> tp_basicsize );
44274427 return 0 ;
44284428 }
44294429 if (type -> tp_dictoffset + (Py_ssize_t )sizeof (PyObject * ) > max ) {
44304430 PyErr_Format (PyExc_TypeError ,
4431- "dict offset %d is out of bounds for type '%s' (tp_basicsize = %d )" ,
4431+ "dict offset %zd is out of bounds for type '%s' (tp_basicsize = %zd )" ,
44324432 type -> tp_dictoffset ,
44334433 type -> tp_name , type -> tp_basicsize );
44344434 return 0 ;
44354435 }
44364436 if (type -> tp_vectorcall_offset + (Py_ssize_t )sizeof (vectorcallfunc * ) > max ) {
44374437 PyErr_Format (PyExc_TypeError ,
4438- "vectorcall offset %d is out of bounds for type '%s' (tp_basicsize = %d )" ,
4438+ "vectorcall offset %zd is out of bounds for type '%s' (tp_basicsize = %zd )" ,
44394439 type -> tp_vectorcall_offset ,
44404440 type -> tp_name , type -> tp_basicsize );
44414441 return 0 ;
0 commit comments