File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ cdef extern from "Python.h":
31
31
void PyMem_Free (void * buf )
32
32
33
33
double PyFloat_AsDouble (object ob )
34
- long PyInt_AsLong (object ob )
34
+ long PyLong_AsLong (object ob )
35
35
36
36
int PyErr_Occurred ()
37
37
void PyErr_Clear ()
@@ -4618,7 +4618,7 @@ cdef class RandomState:
4618
4618
cdef double fp
4619
4619
4620
4620
fp = PyFloat_AsDouble (p )
4621
- ln = PyInt_AsLong (n )
4621
+ ln = PyLong_AsLong (n )
4622
4622
if not PyErr_Occurred ():
4623
4623
if ln < 0 :
4624
4624
raise ValueError ("n < 0" )
@@ -5090,9 +5090,9 @@ cdef class RandomState:
5090
5090
cdef cnp .ndarray ongood , onbad , onsample , otot
5091
5091
cdef long lngood , lnbad , lnsample , lntot
5092
5092
5093
- lngood = PyInt_AsLong (ngood )
5094
- lnbad = PyInt_AsLong (nbad )
5095
- lnsample = PyInt_AsLong (nsample )
5093
+ lngood = PyLong_AsLong (ngood )
5094
+ lnbad = PyLong_AsLong (nbad )
5095
+ lnsample = PyLong_AsLong (nsample )
5096
5096
if not PyErr_Occurred ():
5097
5097
if lngood < 0 :
5098
5098
raise ValueError ("ngood < 0" )
You can’t perform that action at this time.
0 commit comments