Author: Matti Picus <[email protected]>
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))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit