[pypy-commit] pypy default: Translation fix.
arigo
noreply at buildbot.pypy.org
Mon Apr 2 12:20:15 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r54149:53c5958727e6
Date: 2012-04-02 12:18 +0200
http://bitbucket.org/pypy/pypy/changeset/53c5958727e6/
Log: Translation fix.
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
@@ -173,7 +173,8 @@
check_num_args(space, w_args, 1)
w_value, = space.fixedview(w_args)
res = generic_cpy_call(space, func_target, w_self, w_value)
- if rffi.cast(lltype.Signed, res) == -1:
+ res = rffi.cast(lltype.Signed, res)
+ if res == -1:
space.fromcache(State).check_and_raise_exception(always=True)
return space.wrap(bool(res))
More information about the pypy-commit
mailing list