Fix compilation warning in _ctypes module on Window

This commit is contained in:
Amaury Forgeot d'Arc 2010-10-17 08:34:22 +00:00
parent c913989370
commit 20f11fe43c
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}