Author: Ronan Lamy <[email protected]>
Branch: py3.5
Changeset: r89010:3a21b9bcad6e
Date: 2016-12-11 15:52 +0000
http://bitbucket.org/pypy/pypy/changeset/3a21b9bcad6e/
Log: fix translation (pfff...)
diff --git a/pypy/module/cpyext/object.py b/pypy/module/cpyext/object.py
--- a/pypy/module/cpyext/object.py
+++ b/pypy/module/cpyext/object.py
@@ -493,7 +493,7 @@
This is not a complete re-implementation of the CPython API; it only
provides a subset of CPython's behavior.
"""
- if flags & PyBUF_WRITABLE and readonly:
+ if rffi.cast(lltype.Signed, flags) & PyBUF_WRITABLE and readonly:
raise oefmt(space.w_ValueError, "Object is not writable")
view.c_buf = buf
view.c_len = length
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit