[pypy-commit] pypy numpy-record-dtypes: fix test_zjit
fijal
noreply at buildbot.pypy.org
Mon Feb 20 23:30:04 CET 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-record-dtypes
Changeset: r52687:ace56d6a6494
Date: 2012-02-19 20:12 +0200
http://bitbucket.org/pypy/pypy/changeset/ace56d6a6494/
Log: fix test_zjit
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
@@ -47,7 +47,7 @@
)
flat_set_driver = jit.JitDriver(
greens=['shapelen', 'base'],
- reds=['step', 'ai', 'ri', 'lngth', 'arr', 'basei'],
+ reds=['step', 'lngth', 'ri', 'arr', 'basei'],
name='numpy_flatset',
)
@@ -1386,7 +1386,6 @@
start, stop, step, lngth = space.decode_index4(w_idx, base.get_size())
arr = convert_to_array(space, w_value)
ri = arr.create_iter()
- ai = 0
basei = ViewIterator(base.start, base.strides,
base.backstrides, base.shape)
shapelen = len(base.shape)
@@ -1397,7 +1396,6 @@
base=base,
step=step,
arr=arr,
- ai=ai,
lngth=lngth,
ri=ri)
v = arr.getitem(ri.offset).convert_to(base.dtype)
More information about the pypy-commit
mailing list