[pypy-svn] r72472 - pypy/branch/rawffi-64/pypy/module/_rawffi

arigo at codespeak.net arigo at codespeak.net
Sat Mar 20 20:07:57 CET 2010


Author: arigo
Date: Sat Mar 20 20:07:56 2010
New Revision: 72472

Modified:
   pypy/branch/rawffi-64/pypy/module/_rawffi/array.py
Log:
Last fixes?


Modified: pypy/branch/rawffi-64/pypy/module/_rawffi/array.py
==============================================================================
--- pypy/branch/rawffi-64/pypy/module/_rawffi/array.py	(original)
+++ pypy/branch/rawffi-64/pypy/module/_rawffi/array.py	Sat Mar 20 20:07:56 2010
@@ -154,13 +154,13 @@
     getlength.unwrap_spec = ['self', ObjSpace]
 
     def descr_itemaddress(self, space, num):
-        _, itemsize, _ = self.shape.itemtp
+        itemsize = self.shape.size
         ptr = rffi.ptradd(self.ll_buffer, itemsize * num)
         return space.wrap(rffi.cast(lltype.Unsigned, ptr))
     descr_itemaddress.unwrap_spec = ['self', ObjSpace, int]
 
     def getrawsize(self):
-        _, itemsize, _ = self.shape.itemtp
+        itemsize = self.shape.size
         return itemsize * self.length
 
     def decodeslice(self, space, w_slice):



More information about the Pypy-commit mailing list