Author: Timo Paulssen <timona...@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
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to