Author: Ronan Lamy <ronan.l...@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 " _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit