diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2010-10-17 08:34:22 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2010-10-17 08:34:22 (GMT) |
commit | 20f11fe43c47b68c8b9dd6539d2d40b66c9957f9 (patch) | |
tree | 8e37b2c7909f3a76c0f031b79a41d6dc042a9dac /Modules | |
parent | c9139893708245d1dc2d46984686eafaff86109e (diff) | |
download | cpython-20f11fe43c47b68c8b9dd6539d2d40b66c9957f9.zip cpython-20f11fe43c47b68c8b9dd6539d2d40b66c9957f9.tar.gz cpython-20f11fe43c47b68c8b9dd6539d2d40b66c9957f9.tar.bz2 |
Fix compilation warning in _ctypes module on Window
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/libffi_msvc/ffi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/libffi_msvc/ffi.c b/Modules/_ctypes/libffi_msvc/ffi.c index 65581a7..5df4ba4 100644 --- a/Modules/_ctypes/libffi_msvc/ffi.c +++ b/Modules/_ctypes/libffi_msvc/ffi.c @@ -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"); } |