commit | 20f11fe43c47b68c8b9dd6539d2d40b66c9957f9 | [log] [tgz] |
---|---|---|
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Sun Oct 17 08:34:22 2010 +0000 |
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Sun Oct 17 08:34:22 2010 +0000 |
tree | 8e37b2c7909f3a76c0f031b79a41d6dc042a9dac | |
parent | c9139893708245d1dc2d46984686eafaff86109e [diff] |
Fix compilation warning in _ctypes module on Window
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 @@ 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"); }