mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Revert previous checkin on getargs 'L' code. Try to convert all
numbers in PyLong_AsLongLong, and update test suite accordingly. Backported to 2.4.
This commit is contained in:
parent
4bf108d74f
commit
6ce7ed23d0
4 changed files with 27 additions and 25 deletions
|
@ -610,7 +610,6 @@ convertsimple(PyObject *arg, char **p_format, va_list *p_va, char *msgbuf,
|
|||
PY_LONG_LONG *p = va_arg( *p_va, PY_LONG_LONG * );
|
||||
PY_LONG_LONG ival = PyLong_AsLongLong( arg );
|
||||
if( ival == (PY_LONG_LONG)-1 && PyErr_Occurred() ) {
|
||||
PyErr_Clear();
|
||||
return converterr("long<L>", arg, msgbuf, bufsize);
|
||||
} else {
|
||||
*p = ival;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue