Author: Armin Rigo <[email protected]>
Branch: static-callback
Changeset: r2409:2f83b7a79e6c
Date: 2015-11-16 11:31 +0000
http://bitbucket.org/cffi/cffi/changeset/2f83b7a79e6c/

Log:    Need an explicit cast here

diff --git a/cffi/recompiler.py b/cffi/recompiler.py
--- a/cffi/recompiler.py
+++ b/cffi/recompiler.py
@@ -371,7 +371,8 @@
         prnt('_cffi_pypyinit_%s(const void *p[])' % (base_module_name,))
         prnt('{')
         prnt('    if (((intptr_t)p[0]) >= 0x0A03) {')
-        prnt('        _cffi_call_python = p[1];')
+        prnt('        _cffi_call_python = (void(*)(struct _cffi_callpy_s *, '
+                                                  'char *))p[1];')
         prnt('    }')
         prnt('    p[0] = (const void *)%s;' % VERSION)
         prnt('    p[1] = &_cffi_type_context;')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to