summaryrefslogtreecommitdiff
path: root/Lib/python
diff options
context:
space:
mode:
authorMarcelo Matus <mmatus@acms.arizona.edu>2004-12-01 01:20:42 +0000
committerMarcelo Matus <mmatus@acms.arizona.edu>2004-12-01 01:20:42 +0000
commit966290225e48093bb7c73756289ab3319629fd8e (patch)
treeb91ad994880275f8ecc2c180aac8cb54aaf80ef1 /Lib/python
parente14b6980f78ea52d5d5e276e1305f1b21596585c (diff)
downloadswig-966290225e48093bb7c73756289ab3319629fd8e.tar.gz
fix error in bool
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6817 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/python')
-rw-r--r--Lib/python/pyprimtypes.swg4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/python/pyprimtypes.swg b/Lib/python/pyprimtypes.swg
index af909d1af..2fdfa23f0 100644
--- a/Lib/python/pyprimtypes.swg
+++ b/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);
}