Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r2498:e09ccb6b8d89
Date: 2015-12-28 11:53 +0100
http://bitbucket.org/cffi/cffi/changeset/e09ccb6b8d89/

Log:    Issue #241: work around another bug(?) of libffi

diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -4648,7 +4648,9 @@
 
     if (cif_descr != NULL) {
         /* exchange data size */
-        cif_descr->exchange_size = exchange_offset;
+        /* we also align it to the next multiple of 8, in an attempt to
+           work around bugs(?) of libffi like #241 */
+        cif_descr->exchange_size = ALIGN_ARG(exchange_offset);
     }
     return 0;
 }
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to