Author: Attila Gobi <attila.g...@gmail.com> Branch: Changeset: r73475:718ffad76ab8 Date: 2014-07-27 13:36 +0200 http://bitbucket.org/pypy/pypy/changeset/718ffad76ab8/
Log: fixing return type of _compare_digest (grafted from 69a3e8128a9c8255ccfc4df889dc07a806167b20) diff --git a/pypy/module/operator/tscmp.py b/pypy/module/operator/tscmp.py --- a/pypy/module/operator/tscmp.py +++ b/pypy/module/operator/tscmp.py @@ -39,4 +39,4 @@ b = space.bufferstr_w(w_b) with rffi.scoped_nonmovingbuffer(a) as a_buffer: with rffi.scoped_nonmovingbuffer(b) as b_buffer: - return space.wrap(pypy_tscmp(a_buffer, b_buffer, len(a), len(b))) + return space.wrap(rffi.cast(lltype.Bool, pypy_tscmp(a_buffer, b_buffer, len(a), len(b)))) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit