summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-05-26 02:55:09 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-05-26 02:55:09 +0000
commitcb3fb06b904dbdd71cf4a1bfd9c7e4b32332c7b9 (patch)
tree524a54b6acac645f42e9013b27fa7fdbc1101d3f /numpy/lib/function_base.py
parentdccd8d0d688d479dfe26361eb3f18745fe690c10 (diff)
downloadnumpy-cb3fb06b904dbdd71cf4a1bfd9c7e4b32332c7b9.tar.gz
BUG: Fix failed detection of unsigned integers in _nanop. Fixes ticket #1300.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 5504a0f99..d35b0efd2 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -1298,7 +1298,7 @@ def _nanop(op, fill, a, axis=None):
mask = isnan(a)
# We only need to take care of NaN's in floating point arrays
- if not np.issubdtype(y.dtype, int):
+ if not np.issubdtype(y.dtype, np.integer):
# y[mask] = fill
# We can't use fancy indexing here as it'll mess w/ MaskedArrays
# Instead, let's fill the array directly...