Author: Maciej Fijalkowski <[email protected]>
Branch: pypy-in-a-box
Changeset: r56148:3acdb894937d
Date: 2012-07-18 15:19 +0200
http://bitbucket.org/pypy/pypy/changeset/3acdb894937d/

Log:    a missing cast

diff --git a/pypy/objspace/std/embedding.py b/pypy/objspace/std/embedding.py
--- a/pypy/objspace/std/embedding.py
+++ b/pypy/objspace/std/embedding.py
@@ -60,7 +60,7 @@
     except OperationError:
         print "Function did not return int"
         return lltype.nullptr(rffi.VOIDP.TO)
-    return res
+    return rffi.cast(rffi.VOIDP, res)
 
 def _newfunc(space, name, func):
     def newfunc(*args):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to