From: Rico Tzschichholz Date: Wed, 23 Jan 2019 16:35:09 +0000 (+0100) Subject: vala: Both arguments of NC_() must be constant for this call to be constant X-Git-Tag: 0.43.90~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76991c852385e73c666f3c47f1a48ce4bb7bdbd8;p=thirdparty%2Fvala.git vala: Both arguments of NC_() must be constant for this call to be constant --- diff --git a/vala/valamethodcall.vala b/vala/valamethodcall.vala index 56b73648c..fc1bfed11 100644 --- a/vala/valamethodcall.vala +++ b/vala/valamethodcall.vala @@ -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 (); } }