We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a13a949 commit facb5a0Copy full SHA for facb5a0
src/awkward/_reducers.py
@@ -67,10 +67,11 @@ def _dtype_for_kernel(cls, dtype: DTypeLike) -> DTypeLike:
67
@classmethod
68
def _promote_integer_rank(cls, given_dtype: DTypeLike) -> DTypeLike:
69
if given_dtype in (np.bool_, np.int8, np.int16, np.int32):
70
- return np.int32 if cls._use32 else np.int64
+ # Typically, np.intp is used to represent the platform integer type
71
+ return np.int32 if cls._use32 else np.intp
72
73
elif given_dtype in (np.uint8, np.uint16, np.uint32):
- return np.uint32 if cls._use32 else np.uint64
74
+ return np.uint32 if cls._use32 else np.intp
75
76
else:
77
return given_dtype
0 commit comments