[pypy-commit] pypy default: whoops fix error from previous commit

alex_gaynor noreply at buildbot.pypy.org
Tue Dec 13 11:40:05 CET 2011


Author: Alex Gaynor <alex.gaynor at 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)


More information about the pypy-commit mailing list