Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r69969:4b77b625bdcc Date: 2014-03-15 09:24 +0100 http://bitbucket.org/pypy/pypy/changeset/4b77b625bdcc/
Log: Fix "return 0" when the return type is some pointer diff --git a/pypy/module/cpyext/pystate.py b/pypy/module/cpyext/pystate.py --- a/pypy/module/cpyext/pystate.py +++ b/pypy/module/cpyext/pystate.py @@ -213,7 +213,7 @@ if rffi.aroundstate.after: # After external call is before entering Python rffi.aroundstate.after() - return 0 + return lltype.nullptr(PyGILState_STATE.TO) @cpython_api([PyGILState_STATE], lltype.Void) def PyGILState_Release(space, state): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit