[vala] girparser: fix array length parsing



commit fa0b7472856f119539093472136e230dd47e08dd
Author: Evan Nemerson <evan coeus-group com>
Date:   Mon Nov 1 00:32:14 2010 -0700

    girparser: fix array length parsing

 vala/valagirparser.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 950545d..bc959fa 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1687,6 +1687,10 @@ public class Vala.GirParser : CodeVisitor {
 		bool is_array = false;
 		string type_name = reader.get_attribute ("name");
 
+		if (&array_length_index != null) {
+			array_length_index = -1;
+		}
+
 		if (reader.name == "array") {
 			is_array = true;
 			start_element ("array");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]