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 60f6e5b commit 30cfdbfCopy full SHA for 30cfdbf
Modules/arraymodule.c
@@ -154,7 +154,7 @@ enum machine_format_code {
154
static inline bool
155
arraydata_size_valid(Py_ssize_t size, int itemsize)
156
{
157
- return size <= (PY_SSIZE_T_MAX - sizeof(arraydata)) / itemsize;
+ return size <= (PY_SSIZE_T_MAX - (Py_ssize_t)sizeof(arraydata)) / itemsize;
158
}
159
160
static arraydata *
0 commit comments