summaryrefslogtreecommitdiff
path: root/tools/pm
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjell.ahlstedt@bredband.net>2015-11-22 18:46:46 +0100
committerKjell Ahlstedt <kjell.ahlstedt@bredband.net>2015-11-22 18:46:46 +0100
commitbadf0b20ee3b91c64204baafbe7922bf639fd017 (patch)
treec1725a6ca17ecd948f893de3d7adcea52545ac52 /tools/pm
parent7d4cc0f643a9c6a9da2bfdc3c6b13fc179d38c75 (diff)
downloadglibmm-badf0b20ee3b91c64204baafbe7922bf639fd017.tar.gz
gmmproc: Fix a test in Output.pm::get_ctor_properties()
* tools/pm/Output.pm: A test whether a parameter is optional was messed up in such a way that it was always true. The test is just a precaution. In all normal cases the result of a correct test is also true. Probably the error has not affected the code generation from any correct .hg file.
Diffstat (limited to 'tools/pm')
-rw-r--r--tools/pm/Output.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/pm/Output.pm b/tools/pm/Output.pm
index acb6dd89..bfb6f969 100644
--- a/tools/pm/Output.pm
+++ b/tools/pm/Output.pm
@@ -1187,7 +1187,7 @@ sub convert_args_cpp_to_c($$$$$)
# If the C++ index is not found in the list of desired parameters, pass
# nullptr to the C func unless the param is not optional (applies to a
# possibly added GError parameter).
- if (($$cpp_param_flags[$cpp_param_index] & FLAG_PARAM_OPTIONAL))
+ if ($$cpp_param_flags[$cpp_param_index] & FLAG_PARAM_OPTIONAL)
{
push(@conversions, "nullptr");
next;
@@ -1526,7 +1526,7 @@ sub get_ctor_properties($$$$$$)
{
# If the C++ index is not found in the list of desired parameters, pass
# NULL to the C func unless the param is not optional.
- if (~($$cpp_param_flags[$cpp_param_index] & FLAG_PARAM_OPTIONAL))
+ if ($$cpp_param_flags[$cpp_param_index] & FLAG_PARAM_OPTIONAL)
{
push(@result, "nullptr");
next;