Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r58518:410ef836304c
Date: 2012-10-27 21:37 +0200
http://bitbucket.org/pypy/pypy/changeset/410ef836304c/
Log: promote the LENGTH of shape, not the pointer to shape
diff --git a/pypy/module/micronumpy/arrayimpl/concrete.py
b/pypy/module/micronumpy/arrayimpl/concrete.py
--- a/pypy/module/micronumpy/arrayimpl/concrete.py
+++ b/pypy/module/micronumpy/arrayimpl/concrete.py
@@ -169,7 +169,7 @@
def get_shape(self):
shape = self.shape
- jit.hint(shape, promote=True)
+ jit.hint(len(shape), promote=True)
return shape
def getitem(self, index):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit