mirror of https://github.com/python/cpython.git
Fix compilation warning in _ctypes module on Window
This commit is contained in:
parent
c913989370
commit
20f11fe43c
|
@ -110,7 +110,7 @@ void ffi_prep_args(char *stack, extended_cif *ecif)
|
||||||
argp += z;
|
argp += z;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argp - stack > ecif->cif->bytes)
|
if (argp >= stack && (unsigned)(argp - stack) > ecif->cif->bytes)
|
||||||
{
|
{
|
||||||
Py_FatalError("FFI BUG: not enough stack space for arguments");
|
Py_FatalError("FFI BUG: not enough stack space for arguments");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue