fix ref array parameters
authorJuerg Billeter <j@bitron.ch>
Mon, 8 Oct 2007 12:15:21 +0000 (12:15 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Mon, 8 Oct 2007 12:15:21 +0000 (12:15 +0000)
2007-10-08  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala: fix ref array parameters

svn path=/trunk/; revision=641

ChangeLog
gobject/valaccodegenerator.vala

index 6ab4592..49edb98 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-08  Jürg Billeter  <j@bitron.ch>
+
+       * gobject/valaccodegenerator.vala: fix ref array parameters
+
 2007-10-05  Jürg Billeter  <j@bitron.ch>
 
        * gobject/valaccodeassignmentbinding.vala: support static methods as
index 6f1f493..1ea658d 100644 (file)
@@ -2047,7 +2047,7 @@ public class Vala.CCodeGenerator : CodeGenerator {
        
                if (array_expr is UnaryExpression) {
                        var unary_expr = (UnaryExpression) array_expr;
-                       if (unary_expr.operator == UnaryOperator.OUT) {
+                       if (unary_expr.operator == UnaryOperator.OUT || unary_expr.operator == UnaryOperator.REF) {
                                array_expr = unary_expr.inner;
                                is_out = true;
                        }