]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girwriter: Fix fixed-length arrays
authorJürg Billeter <j@bitron.ch>
Sat, 16 Oct 2010 07:54:03 +0000 (09:54 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 19 Oct 2010 18:54:23 +0000 (20:54 +0200)
Fixes bug 631529.

codegen/valagirwriter.vala

index 4890aa650bb12072df7e35c0432e8ebf2a1f0705..28bc59e936485185efc0919c77196da5a92be884 100644 (file)
@@ -827,7 +827,7 @@ public class Vala.GIRWriter : CodeVisitor {
                        write_indent ();
                        buffer.append_printf ("<array");
                        if (array_type.fixed_length) {
-                               buffer.append_printf (" fixed-length\"%i\"", array_type.length);
+                               buffer.append_printf (" fixed-size=\"%i\"", array_type.length);
                        } else if (index != -1) {
                                buffer.append_printf (" length=\"%i\"", index + 1);
                        }