From d97eab2c7f3246317c493fa97f0f1935ef4e41e7 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Thu, 26 Oct 2000 03:13:05 +0000 Subject: [PATCH] Fixed bool handling bug in Python module reported by Michael Scharf. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@930 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules1.1/python.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SWIG/Source/Modules1.1/python.cxx b/SWIG/Source/Modules1.1/python.cxx index d1c2de499..2b2044d35 100644 --- a/SWIG/Source/Modules1.1/python.cxx +++ b/SWIG/Source/Modules1.1/python.cxx @@ -459,7 +459,7 @@ PYTHON::function(DOH *node) { Wrapper_add_localv(f,tempb,"int",tempb,0); else Wrapper_add_localv(f,tempb,"int",tempb, "=",tempval,0); - Printv(get_pointers, tab4, target, " = (", SwigType_lstr(pt,0), ") ", tempb, ";\n", 0); + Printv(get_pointers, tab4, target, " = ( ", tempb, " != 0);\n", 0); Printf(arglist,"&%s",tempb); noarg = 1; }