[pypy-commit] pypy default: fix translation (@Alex_Gaynor)
mattip
noreply at buildbot.pypy.org
Mon Apr 23 01:16:41 CEST 2012
Author: Matti Picus <matti.picus at gmail.com>
Branch:
Changeset: r54637:0b78258294b6
Date: 2012-04-23 02:15 +0300
http://bitbucket.org/pypy/pypy/changeset/0b78258294b6/
Log: fix translation (@Alex_Gaynor)
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