summaryrefslogtreecommitdiff
path: root/numpy/lib/arraysetops.py
diff options
context:
space:
mode:
authorKonrad Kapp <k_kapp@yahoo.com>2017-05-20 12:50:15 +0200
committerEric Wieser <wieser.eric@gmail.com>2017-05-20 11:50:15 +0100
commite52efca5accf06016ca4c1b180216e66db881ce2 (patch)
treed2c73c5a287933242ea531545d35dc885ea6e892 /numpy/lib/arraysetops.py
parentd090484f8ec0daae720e79169e1a853f84e6deb4 (diff)
downloadnumpy-e52efca5accf06016ca4c1b180216e66db881ce2.tar.gz
BUG: set default type for empty index array to `numpy.intp` (#9142)
Fixes #9137
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r--numpy/lib/arraysetops.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py
index d29e555b8..9b0a1193f 100644
--- a/numpy/lib/arraysetops.py
+++ b/numpy/lib/arraysetops.py
@@ -263,9 +263,9 @@ def _unique1d(ar, return_index=False, return_inverse=False,
else:
ret = (ar,)
if return_index:
- ret += (np.empty(0, np.bool),)
+ ret += (np.empty(0, np.intp),)
if return_inverse:
- ret += (np.empty(0, np.bool),)
+ ret += (np.empty(0, np.intp),)
if return_counts:
ret += (np.empty(0, np.intp),)
return ret