Author: Armin Rigo <[email protected]>
Branch: release-0.7
Changeset: r1332:951a965555c7
Date: 2013-08-01 22:54 +0200
http://bitbucket.org/cffi/cffi/changeset/951a965555c7/
Log: Fix for win64
diff --git a/c/libffi_msvc/ffi.c b/c/libffi_msvc/ffi.c
--- a/c/libffi_msvc/ffi.c
+++ b/c/libffi_msvc/ffi.c
@@ -379,7 +379,12 @@
#ifdef _WIN64
if (z > 8)
- *p_argv = *((void**) argp); /* indirect */
+ {
+ /* On Win64, if a single argument takes more than 8 bytes,
+ then it is always passed by reference. */
+ *p_argv = *((void**) argp);
+ z = 8;
+ }
else
#endif
*p_argv = (void*) argp;
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit