BUG: View with specific int dtype.

Just viewing as int is broken on win32.
This commit is contained in:
Scott Sanderson
2016-05-05 02:13:14 -04:00
parent e0aeda4c3e
commit 9fd8ec180d
+2 -1
View File
@@ -353,7 +353,8 @@ class LabelArray(ndarray):
# Result is a scalar value, which will be an instance of np.void.
# Map it back to one of our category entries.
return self.categories[result.view(int)]
index = result.view(int_dtype_with_size_in_bytes(self.itemsize))
return self.categories[index]
def is_missing(self):
"""