[pypy-svn] pypy jitypes2: fix translation which started to fail because rffi.VOIDP now it's != rffi.CHARP

antocuni commits-noreply at bitbucket.org
Wed Mar 23 10:33:24 CET 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r42863:94f22d127bb1
Date: 2011-03-23 09:35 +0100
http://bitbucket.org/pypy/pypy/changeset/94f22d127bb1/

Log:	fix translation which started to fail because rffi.VOIDP now it's !=
	rffi.CHARP

diff --git a/pypy/rlib/libffi.py b/pypy/rlib/libffi.py
--- a/pypy/rlib/libffi.py
+++ b/pypy/rlib/libffi.py
@@ -440,7 +440,7 @@
 
     def _free_buffers(self, ll_result, ll_args):
         if ll_result:
-            self._free_buffer_maybe(ll_result, self.restype)
+            self._free_buffer_maybe(rffi.cast(rffi.VOIDP, ll_result), self.restype)
         for i in range(len(self.argtypes)):
             argtype = self.argtypes[i]
             self._free_buffer_maybe(ll_args[i], argtype)


More information about the Pypy-commit mailing list