From ff232d723089eb0c743265821db528494a661099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 3 Mar 2005 09:24:38 +0000 Subject: Clear internal call error in 'L' format. Fixes #723201. Backported to 2.4. --- Python/getargs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python') diff --git a/Python/getargs.c b/Python/getargs.c index 48f9dc481d..0684e38e3b 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", arg, msgbuf, bufsize); } else { *p = ival; -- cgit v1.2.1