summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2010-10-17 08:34:22 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2010-10-17 08:34:22 (GMT)
commit20f11fe43c47b68c8b9dd6539d2d40b66c9957f9 (patch)
tree8e37b2c7909f3a76c0f031b79a41d6dc042a9dac /Modules
parentc9139893708245d1dc2d46984686eafaff86109e (diff)
downloadcpython-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.c2
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");
}