Author: Antonio Cuni <[email protected]>
Branch: faster-rstruct-2
Changeset: r91297:a1412ae7916c
Date: 2017-05-15 14:13 +0200
http://bitbucket.org/pypy/pypy/changeset/a1412ae7916c/

Log:    fix BytearrayBuffer.typed_{read,write}

diff --git a/pypy/objspace/std/bytearrayobject.py 
b/pypy/objspace/std/bytearrayobject.py
--- a/pypy/objspace/std/bytearrayobject.py
+++ b/pypy/objspace/std/bytearrayobject.py
@@ -1304,7 +1304,7 @@
 
     def _get_gc_data(self):
         from rpython.rtyper.lltypesystem import lltype, llmemory
-        ll_data = ll_for_resizable_list(self.data)
+        ll_data = ll_for_resizable_list(self.ba._data)
         ll_items = ll_data.items
         LIST = lltype.typeOf(ll_data).TO # rlist.LIST_OF(lltype.Char)
         base_ofs = llmemory.itemoffsetof(LIST.items.TO, 0)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to