[pypy-commit] pypy py3.5: fix translation

rlamy pypy.commits at gmail.com
Sun Sep 3 06:41:23 EDT 2017


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r92311:87310894a32d
Date: 2017-09-03 11:40 +0100
http://bitbucket.org/pypy/pypy/changeset/87310894a32d/

Log:	fix translation

diff --git a/pypy/module/cpyext/modsupport.py b/pypy/module/cpyext/modsupport.py
--- a/pypy/module/cpyext/modsupport.py
+++ b/pypy/module/cpyext/modsupport.py
@@ -153,7 +153,7 @@
             execf = rffi.cast(execfunctype, cur_slot[0].c_value)
             res = generic_cpy_call_dont_convert_result(space, execf, w_mod)
             state = space.fromcache(State)
-            if res:
+            if rffi.cast(lltype.Signed, res):
                 state.check_and_raise_exception()
                 raise oefmt(space.w_SystemError,
                             "execution of module %S failed without "


More information about the pypy-commit mailing list