Commit 20f11fe4 authored by Amaury Forgeot d'Arc's avatar Amaury Forgeot d'Arc

Fix compilation warning in _ctypes module on Window

parent c9139893
......@@ -110,7 +110,7 @@ void ffi_prep_args(char *stack, extended_cif *ecif)
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");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment