Author: Amaury Forgeot d'Arc <[email protected]>
Branch: pyarg-parsetuple-s-star-buffer
Changeset: r50447:ab4be8e09a58
Date: 2011-12-12 21:54 +0100
http://bitbucket.org/pypy/pypy/changeset/ab4be8e09a58/

Log:    Fix for 64bit platforms

diff --git a/pypy/module/cpyext/bufferobject.py 
b/pypy/module/cpyext/bufferobject.py
--- a/pypy/module/cpyext/bufferobject.py
+++ b/pypy/module/cpyext/bufferobject.py
@@ -34,8 +34,8 @@
     """
     py_buf = rffi.cast(PyBufferObject, py_obj)
     py_buf.c_b_offset = 0
-    py_buf.c_b_readonly = 1
-    py_buf.c_b_hash = -1
+    rffi.setintfield(py_buf, 'c_b_readonly', 1)
+    rffi.setintfield(py_buf, 'c_b_hash', -1)
 
     if isinstance(w_obj, SubBuffer):
         py_buf.c_b_offset = w_obj.offset
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to