Author: Alex Gaynor <alex.gay...@gmail.com> Branch: Changeset: r50461:adc2497aaa14 Date: 2011-12-13 05:39 -0500 http://bitbucket.org/pypy/pypy/changeset/adc2497aaa14/
Log: whoops fix error from previous commit 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 @@ -791,7 +791,8 @@ raise OperationError(space.w_IndexError, space.wrap( "0-d arrays can't be indexed")) item = concrete._index_of_single_item(space, w_idx) - concrete.setitem(item, concrete.dtype.coerce(space, w_value)) + dtype = concrete.find_dtype() + concrete.setitem(item, dtype.coerce(space, w_value)) return if not isinstance(w_value, BaseArray): w_value = convert_to_array(space, w_value) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit