Author: Attila Gobi <[email protected]>
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))))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit