Skip to content

Commit d76bcd3

Browse files
committed
Use cython.long in pure Python parts of Cython code
1 parent 3fdcf8b commit d76bcd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mkl_random/mklrand.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5492,7 +5492,7 @@ cdef class RandomState:
54925492

54935493
if size is None:
54945494
shape = []
5495-
elif isinstance(size, (int, long, np.integer)):
5495+
elif isinstance(size, (int, cython.long, np.integer)):
54965496
shape = [size]
54975497
else:
54985498
shape = size
@@ -5896,7 +5896,7 @@ cdef class RandomState:
58965896
[3, 4, 5]])
58975897
58985898
"""
5899-
if isinstance(x, (int, long, np.integer)):
5899+
if isinstance(x, (int, cython.long, np.integer)):
59005900
arr = np.arange(x)
59015901
else:
59025902
arr = np.array(x)

0 commit comments

Comments
 (0)