File tree 1 file changed +2
-4
lines changed 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -625,8 +625,7 @@ pylong_aslongandoverflow(PyObject *module, PyObject *arg)
625
625
int overflow = UNINITIALIZED_INT ;
626
626
long value = PyLong_AsLongAndOverflow (arg , & overflow );
627
627
if (value == -1 && PyErr_Occurred ()) {
628
- // overflow can be 0 if a separate exception occurred
629
- assert (overflow == -1 || overflow == 0 );
628
+ assert (overflow == 0 );
630
629
return NULL ;
631
630
}
632
631
return Py_BuildValue ("li" , value , overflow );
@@ -672,8 +671,7 @@ pylong_aslonglongandoverflow(PyObject *module, PyObject *arg)
672
671
int overflow = UNINITIALIZED_INT ;
673
672
long long value = PyLong_AsLongLongAndOverflow (arg , & overflow );
674
673
if (value == -1 && PyErr_Occurred ()) {
675
- // overflow can be 0 if a separate exception occurred
676
- assert (overflow == -1 || overflow == 0 );
674
+ assert (overflow == 0 );
677
675
return NULL ;
678
676
}
679
677
return Py_BuildValue ("Li" , value , overflow );
You can’t perform that action at this time.
0 commit comments