From 84065db35b33939ebcca3624865a6b437ab939ff Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Wed, 1 Dec 2004 01:20:42 +0000 Subject: [PATCH] fix error in bool git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6817 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/python/pyprimtypes.swg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SWIG/Lib/python/pyprimtypes.swg b/SWIG/Lib/python/pyprimtypes.swg index af909d1af..2fdfa23f0 100644 --- a/SWIG/Lib/python/pyprimtypes.swg +++ b/SWIG/Lib/python/pyprimtypes.swg @@ -580,7 +580,9 @@ SWIGINTERN int if (SWIG_AsVal(int)(obj, &res)) { if (val) *val = res ? true : false; return 1; - } + } else { + PyErr_Clear(); + } if (val) { SWIG_type_error("bool", obj); }