Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3886026

Browse files
committed
Remove unreachable code. (Sjoerd)
1 parent 1554b7b commit 3886026

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

Objects/longobject.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,6 @@ PyLong_FromLongLong(ival)
398398

399399
return (PyObject *)v;
400400
}
401-
402-
/* If we got here, we're confused... */
403-
PyErr_SetString( PyExc_ArithmeticError, "invalid long integer" );
404-
return NULL;
405401
#endif
406402
}
407403

@@ -434,10 +430,6 @@ PyLong_FromUnsignedLongLong(ival)
434430

435431
return (PyObject *)v;
436432
}
437-
438-
/* If we got here, we're confused... */
439-
PyErr_SetString( PyExc_ArithmeticError, "invalid unsigned long integer" );
440-
return NULL;
441433
#endif
442434
}
443435

0 commit comments

Comments
 (0)