Merge pull request #548 from dmigous/547_objc_bool_always_true

objc.swg: fixed check of pointer to boolean. Fixes #547
diff --git a/Lib/objc/objc.swg b/Lib/objc/objc.swg
index 0454c25..7e18650 100644
--- a/Lib/objc/objc.swg
+++ b/Lib/objc/objc.swg
@@ -144,7 +144,7 @@
 %{ $1 = $input? true : false; %}
 
 %typemap(in) bool * (bool temp), const bool * (bool temp), const bool & (bool temp), bool & (bool temp) {
-  temp = ($input) ? true : false;
+  temp = (*$input) ? true : false;
   $1 = &temp;
 }