gh-146615: Fix format specifiers in test cextensions (GH-146618) · python/cpython@b705553 · GitHub
Skip to content

Commit b705553

Browse files
authored
gh-146615: Fix format specifiers in test cextensions (GH-146618)
1 parent 1c396e1 commit b705553

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

Modules/_testcapi/watchers.c

Lines changed: 2 additions & 2 deletions

Modules/_testcapimodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ test_sizeof_c_types(PyObject *self, PyObject *Py_UNUSED(ignored))
116116
do { \
117117
if (EXPECTED != sizeof(TYPE)) { \
118118
PyErr_Format(get_testerror(self), \
119-
"sizeof(%s) = %u instead of %u", \
120-
#TYPE, sizeof(TYPE), EXPECTED); \
119+
"sizeof(%s) = %zu instead of %u", \
120+
#TYPE, sizeof(TYPE), (unsigned)(EXPECTED)); \
121121
return (PyObject*)NULL; \
122122
} \
123123
} while (0)

Modules/_testinternalcapi.c

Lines changed: 4 additions & 4 deletions

0 commit comments

Comments
 (0)