[vala/staging: 2/3] vala: Both arguments of NC_() must be constant for this call to be constant
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 2/3] vala: Both arguments of NC_() must be constant for this call to be constant
- Date: Wed, 23 Jan 2019 20:42:24 +0000 (UTC)
commit 76991c852385e73c666f3c47f1a48ce4bb7bdbd8
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Jan 23 17:35:09 2019 +0100
vala: Both arguments of NC_() must be constant for this call to be constant
vala/valamethodcall.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
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 ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]