[pypy-commit] pypy py3.3: fixing return type of _compare_digest

agobi noreply at buildbot.pypy.org
Sun Jul 27 13:50:39 CEST 2014


Author: Attila Gobi <attila.gobi at gmail.com>
Branch: py3.3
Changeset: r72563:69a3e8128a9c
Date: 2014-07-27 13:36 +0200
http://bitbucket.org/pypy/pypy/changeset/69a3e8128a9c/

Log:	fixing return type of _compare_digest

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))))


More information about the pypy-commit mailing list