[pypy-commit] pypy win32-cleanup2: merge from default

mattip noreply at buildbot.pypy.org
Mon Apr 23 01:16:43 CEST 2012


Author: Matti Picus <matti.picus at gmail.com>
Branch: win32-cleanup2
Changeset: r54638:b926e74b1d0e
Date: 2012-04-23 02:16 +0300
http://bitbucket.org/pypy/pypy/changeset/b926e74b1d0e/

Log:	merge from default

diff --git a/pypy/module/cpyext/slotdefs.py b/pypy/module/cpyext/slotdefs.py
--- a/pypy/module/cpyext/slotdefs.py
+++ b/pypy/module/cpyext/slotdefs.py
@@ -65,7 +65,7 @@
     check_num_args(space, w_args, 0)
     args_w = space.fixedview(w_args)
     res = generic_cpy_call(space, func_inquiry, w_self)
-    if res == -1:
+    if rffi.cast(lltype.Signed, res) == -1:
         space.fromcache(State).check_and_raise_exception()
     return space.wrap(bool(res))
 


More information about the pypy-commit mailing list