Commits

Antonio Cuni committed 94f22d1

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

  • Participants
  • Parent commits af772f3
  • Branches jitypes2

Comments (0)

Files changed (1)

File pypy/rlib/libffi.py

 
     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)