summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-03-03 09:24:38 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-03-03 09:24:38 (GMT)
commitff232d723089eb0c743265821db528494a661099 (patch)
tree432c52a79a39e0578e0792df979a3b245cd56a98 /Python
parentf2a8d63e4fac18c794ab99fd46999b36de35d11d (diff)
downloadcpython-ff232d723089eb0c743265821db528494a661099.zip
cpython-ff232d723089eb0c743265821db528494a661099.tar.gz
cpython-ff232d723089eb0c743265821db528494a661099.tar.bz2
Clear internal call error in 'L' format. Fixes #723201.
Backported to 2.4.
Diffstat (limited to 'Python')
-rw-r--r--Python/getargs.c1
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;