diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2004-12-01 01:20:42 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2004-12-01 01:20:42 +0000 |
commit | 966290225e48093bb7c73756289ab3319629fd8e (patch) | |
tree | b91ad994880275f8ecc2c180aac8cb54aaf80ef1 /Lib/python | |
parent | e14b6980f78ea52d5d5e276e1305f1b21596585c (diff) | |
download | swig-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.swg | 4 |
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); } |