[pypy-commit] pypy refactor-signature: We require flatiter to force the array for now

fijal noreply at buildbot.pypy.org
Mon Dec 19 23:01:38 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: refactor-signature
Changeset: r50724:993a31c296bb
Date: 2011-12-20 00:00 +0200
http://bitbucket.org/pypy/pypy/changeset/993a31c296bb/

Log:	We require flatiter to force the array for now

diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -1174,6 +1174,7 @@
 
     @jit.unroll_safe
     def __init__(self, arr):
+        arr = arr.get_concrete()
         size = 1
         for sh in arr.shape:
             size *= sh


More information about the pypy-commit mailing list