summaryrefslogtreecommitdiff
path: root/numpy/lib/histograms.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/histograms.py')
-rw-r--r--numpy/lib/histograms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/histograms.py b/numpy/lib/histograms.py
index bd2f80186..66e2ccda1 100644
--- a/numpy/lib/histograms.py
+++ b/numpy/lib/histograms.py
@@ -927,7 +927,7 @@ def histogramdd(sample, bins=10, range=None, normed=False, weights=None):
# Compute the sample indices in the flattened histogram matrix.
ni = nbin.argsort()
- xy = np.zeros(N, int)
+ xy = np.zeros(N, np.intp)
for i in np.arange(0, D-1):
xy += Ncount[ni[i]] * nbin[ni[i+1:]].prod()
xy += Ncount[ni[-1]]