[pypy-commit] pypy object-dtype2: Fix

arigo noreply at buildbot.pypy.org
Wed Apr 1 11:08:47 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: object-dtype2
Changeset: r76667:662d2c806a12
Date: 2015-04-01 11:08 +0200
http://bitbucket.org/pypy/pypy/changeset/662d2c806a12/

Log:	Fix

diff --git a/pypy/module/micronumpy/concrete.py b/pypy/module/micronumpy/concrete.py
--- a/pypy/module/micronumpy/concrete.py
+++ b/pypy/module/micronumpy/concrete.py
@@ -348,7 +348,7 @@
     #debug_print('in customtrace w/obj', obj)
     length = rffi.cast(rffi.SIGNEDP, obj + offset_of_length)[0]
     step = rffi.cast(rffi.SIGNEDP, obj + offset_of_step)[0]
-    storage = obj + offset_of_storage
+    storage = (obj + offset_of_storage).address[0]
     debug_print('tracing', length, 'objects in ndarray.storage')
     i = 0
     while i < length:


More information about the pypy-commit mailing list