From: Luca Bruno Date: Sun, 9 Oct 2011 08:50:32 +0000 (+0200) Subject: girparser: Do not create ArrayType twice with array metadata argument X-Git-Tag: 0.14.1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9072fa348602b8a5ed90e6096445f1af7751dc3f;p=thirdparty%2Fvala.git girparser: Do not create ArrayType twice with array metadata argument --- diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala index a3d650ebc..be3d241e9 100644 --- a/vala/valagirparser.vala +++ b/vala/valagirparser.vala @@ -1534,7 +1534,7 @@ public class Vala.GirParser : CodeVisitor { parse_type_arguments_from_string (type, metadata.get_string (ArgumentType.TYPE_ARGUMENTS), metadata.get_source_reference (ArgumentType.TYPE_ARGUMENTS)); } - if (metadata.get_bool (ArgumentType.ARRAY)) { + if (!(type is ArrayType) && metadata.get_bool (ArgumentType.ARRAY)) { type = new ArrayType (type, 1, type.source_reference); changed = true; }