Author: Maciej Fijalkowski <[email protected]>
Branch: backend-vector-ops
Changeset: r52740:aaa9c4ef0367
Date: 2012-02-21 08:59 -0700
http://bitbucket.org/pypy/pypy/changeset/aaa9c4ef0367/

Log:    OneDimIterator has a promoted step. skeptical

diff --git a/pypy/module/micronumpy/interp_iter.py 
b/pypy/module/micronumpy/interp_iter.py
--- a/pypy/module/micronumpy/interp_iter.py
+++ b/pypy/module/micronumpy/interp_iter.py
@@ -173,7 +173,7 @@
         arr = instantiate(OneDimIterator)
         arr.size = self.size
         arr.step = self.step
-        arr.offset = self.offset + self.step
+        arr.offset = self.offset + jit.promote(self.step)
         return arr
 
     def done(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to