summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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...