From 8904c7ab8d3e5fb1233e80586c5a4c6b7df4a14b Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Fri, 7 Jul 2006 22:42:15 +0000 Subject: Fix numeric.indices on 64-bit platforms. --- numpy/core/numeric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index a74fb158b..52fe1d394 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -334,7 +334,7 @@ def indices(dimensions, dtype=int): lst = [] for i in range(len(dimensions)): lst.append( add.accumulate(tmp, i, )-1 ) - return array(lst) + return array(lst, dtype) def fromfunction(function, dimensions, **kwargs): """fromfunction(function, dimensions) returns an array constructed by -- cgit v1.2.1