summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2021-04-26 20:36:07 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2021-04-26 22:32:52 +0100
commit8a21922f1a82153097aa9e50124769e4a01090c0 (patch)
tree78c4f7f00cc0fbb2c1f60aa6877eacbb558c2536
parentbbb49a203e1847254b7f848cddc7aa7e833b60ca (diff)
downloadswig-8a21922f1a82153097aa9e50124769e4a01090c0.tar.gz
bool performance warning fix
-rw-r--r--Source/Modules/r.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Modules/r.cxx b/Source/Modules/r.cxx
index 3e3c23e44..3ae97b59a 100644
--- a/Source/Modules/r.cxx
+++ b/Source/Modules/r.cxx
@@ -1745,7 +1745,7 @@ int R::functionWrapper(Node *n) {
/* Add the name of this member to a list for this class_name.
We will dump all these at the end. */
- bool isSet(GetFlag(n, "memberset"));
+ bool isSet = GetFlag(n, "memberset") ? true : false;
String *tmp = NewString(isSet ? Swig_name_set(NSPACE_TODO, class_name) : Swig_name_get(NSPACE_TODO, class_name));