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 bf0b1ba..fcfd598 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 f4fee45..a27468c 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);