]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
fix crash when parsing array creation expression
authorJürg Billeter <j@bitron.ch>
Sun, 4 Feb 2007 12:36:09 +0000 (12:36 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sun, 4 Feb 2007 12:36:09 +0000 (12:36 +0000)
2007-02-04  Jürg Billeter  <j@bitron.ch>

* vala/parser.y: fix crash when parsing array creation expression

svn path=/trunk/; revision=185

vala/ChangeLog
vala/vala/parser.y

index bf0b1baa6b76ad230f4479da7a7f0df066c1d057..fcfd598520de9ed689a82132dc70c5e18c37ad78 100644 (file)
@@ -1,3 +1,7 @@
+2007-02-04  Jürg Billeter  <j@bitron.ch>
+
+       * vala/parser.y: fix crash when parsing array creation expression
+
 2006-12-23  Jürg Billeter  <j@bitron.ch>
 
        * vala/valaattribute.vala: add get_bool method for boolean values
index f4fee4583d880b691efe8ae9a6ee4bd0ef6f74f9..a27468c02b3784c96ff93cf6c495e1f27ddb8172 100644 (file)
@@ -1,6 +1,6 @@
 /* parser.y
  *
- * Copyright (C) 2006  Jürg Billeter, Raffaele Sandrini
+ * Copyright (C) 2006-2007  Jürg Billeter, Raffaele Sandrini
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -556,7 +556,7 @@ array_creation_expression
          {
                ValaSourceReference *src = src(@2);
                ValaTypeReference *t = vala_type_reference_new_from_expression (VALA_EXPRESSION ($2));
-               $$ = VALA_EXPRESSION (vala_array_creation_expression_new (t, $3, VALA_INITIALIZER_LIST (4), src));
+               $$ = VALA_EXPRESSION (vala_array_creation_expression_new (t, $3, VALA_INITIALIZER_LIST ($4), src));
                g_object_unref (t);
                g_object_unref (src);
                g_object_unref ($2);