From 10dce94fea4a344c5f03913a0e793a4b1696ad56 Mon Sep 17 00:00:00 2001 From: Iason Krommydas Date: Thu, 13 Nov 2025 03:05:55 -0600 Subject: [PATCH] do not pass index into np like function --- src/awkward/contents/indexedoptionarray.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/awkward/contents/indexedoptionarray.py b/src/awkward/contents/indexedoptionarray.py index c31bb43d98..274f02719b 100644 --- a/src/awkward/contents/indexedoptionarray.py +++ b/src/awkward/contents/indexedoptionarray.py @@ -269,7 +269,9 @@ def to_IndexedOptionArray64(self) -> IndexedOptionArray: return self else: return IndexedOptionArray( - self._backend.nplike.astype(self._index, dtype=np.int64), + ak.index.Index64( + self._backend.nplike.astype(self._index.data, dtype=np.int64) + ), self._content, parameters=self._parameters, )