We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aed7122 commit 1222418Copy full SHA for 1222418
Modules/_ctypes/stgdict.c
@@ -339,7 +339,7 @@ MakeAnonFields(PyObject *type)
339
340
/*
341
Allocate a memory block for a pep3118 format string, copy prefix (if
342
- non-null) into it and append `{padding}x` to the end.
+ non-null) into it and append `{padding}x` to the end.
343
Returns NULL on failure, with the error indicator set.
344
*/
345
char *
@@ -356,7 +356,7 @@ _ctypes_alloc_format_padding(const char *prefix, Py_ssize_t padding)
356
}
357
358
int ret = PyOS_snprintf(buf, sizeof(buf), "%zdx", padding);
359
- assert(0 <= ret && ret < sizeof(buf));
+ assert(0 <= ret && ret < (Py_ssize_t)sizeof(buf));
360
return _ctypes_alloc_format_string(prefix, buf);
361
362
0 commit comments