summaryrefslogtreecommitdiff
path: root/numpy/ma
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/ma')
-rw-r--r--numpy/ma/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py
index 6873bef6c..98100621e 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -5552,8 +5552,8 @@ class mvoid(MaskedArray):
def __getitem__(self, indx):
"Get the index..."
- _mask = self._mask.astype(np.void)
- if _mask is not nomask and _mask[indx]:
+ m = self._mask
+ if m is not nomask and m[indx]:
return masked
return self._data[indx]