]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Both arguments of NC_() must be constant for this call to be constant
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 23 Jan 2019 16:35:09 +0000 (17:35 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 23 Jan 2019 20:41:36 +0000 (21:41 +0100)
vala/valamethodcall.vala

index 56b73648cef38288030866cfda8f129fbbbfdbc8..fc1bfed1183995ade18051933c18415c2c8c9b34 100644 (file)
@@ -120,8 +120,8 @@ public class Vala.MethodCall : Expression {
                                // first argument is string
                                return argument_list[0].is_constant ();
                        } else if (method_type.method_symbol.get_full_name () == "GLib.NC_") {
-                               // second argument is string
-                               return argument_list[1].is_constant ();
+                               // first and second argument is string
+                               return argument_list[0].is_constant () && argument_list[1].is_constant ();
                        }
                }