[pypy-commit] pypy separate-applevel-numpy: translation fix

timo_jbo noreply at buildbot.pypy.org
Thu Sep 29 09:41:46 CEST 2011


Author: Timo Paulssen <timonator at perpetuum-immobile.de>
Branch: separate-applevel-numpy
Changeset: r47671:ee5aff4eb630
Date: 2011-09-29 09:40 +0200
http://bitbucket.org/pypy/pypy/changeset/ee5aff4eb630/

Log:	translation fix

diff --git a/pypy/module/_numpy/interp_numarray.py b/pypy/module/_numpy/interp_numarray.py
--- a/pypy/module/_numpy/interp_numarray.py
+++ b/pypy/module/_numpy/interp_numarray.py
@@ -556,9 +556,9 @@
             raise OperationError(space.w_ValueError,
                                  space.wrap("Invalid number of dimensions"))
         w_size_int = space.getitem(w_size, space.wrap(0))
-        size = space.unwrap(w_size_int)
+        size = space.int_w(w_size_int)
     else:
-        size = space.unwrap(w_size)
+        size = space.int_w(w_size)
 
     return size
 


More information about the pypy-commit mailing list