Skip to content

Commit

Permalink
Drop check for np.long
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-pavlyk committed May 25, 2024
1 parent 00dbad6 commit 2011026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkl_random/mklrand.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1687,7 +1687,7 @@ cdef class RandomState:
ret = randfunc(low, high - 1, size)

if size is None:
if dtype in (bool, int, np.long):
if dtype in (bool, int):
return dtype(ret)

return ret
Expand Down

0 comments on commit 2011026

Please sign in to comment.