Commit 6e85636c authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

fix crash when parsing array creation expression

2007-02-04  Jürg Billeter  <j@bitron.ch>

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

svn path=/trunk/; revision=185
parent 4391dfe0
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
......
/* 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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment