diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2005-03-03 09:24:05 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2005-03-03 09:24:05 (GMT) |
commit | 2d2a32f0171da07ce083ee1610417cc5951a7858 (patch) | |
tree | e949a1313e8089abb600731570ec4e21e4c1b287 /Python | |
parent | 98e7508080ca6a467018db7866998381660cfc78 (diff) | |
download | cpython-2d2a32f0171da07ce083ee1610417cc5951a7858.zip cpython-2d2a32f0171da07ce083ee1610417cc5951a7858.tar.gz cpython-2d2a32f0171da07ce083ee1610417cc5951a7858.tar.bz2 |
Clear internal call error in 'L' format. Fixes #723201.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/getargs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 48f9dc4..0684e38 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -610,6 +610,7 @@ 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; |