[pypy-commit] pypy pypy-in-a-box: oops

fijal noreply at buildbot.pypy.org
Wed Jul 18 15:13:59 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: pypy-in-a-box
Changeset: r56147:b2dc8757cd36
Date: 2012-07-18 15:13 +0200
http://bitbucket.org/pypy/pypy/changeset/b2dc8757cd36/

Log:	oops

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
@@ -54,12 +54,12 @@
         w_res = space.call(w_item, space.newtuple([space.wrap(i) for i in args]))
     except OperationError:
         print "Error calling the function"
-        return lltype.nullptr(rffi.VOIDP)
+        return lltype.nullptr(rffi.VOIDP.TO)
     try:
         res = space.int_w(w_res)
     except OperationError:
         print "Function did not return int"
-        return lltype.nullptr(rffi.VOIDP)
+        return lltype.nullptr(rffi.VOIDP.TO)
     return res
 
 def _newfunc(space, name, func):


More information about the pypy-commit mailing list