avoid using l for portability
@@ -217,7 +217,7 @@ def histogram(x, bins=10, range=None, weights=None, density=False):
bin_edges = _get_bin_edges(x, bins, range)
if weights is None:
- y = cupy.zeros(bin_edges.size - 1, dtype='l')
+ y = cupy.zeros(bin_edges.size - 1, dtype=cupy.int64)
for accelerator in _accelerator.get_routine_accelerators():
# CUB uses int for bin counts
# TODO(leofang): support >= 2^31 elements in x?
