[vala] girparser: fix parsing of nullable types
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: fix parsing of nullable types
- Date: Fri, 23 Sep 2011 20:07:54 +0000 (UTC)
commit 5dc28ed8a422f708e5ce155838e183d3ce3e5a19
Author: Evan Nemerson <evan coeus-group com>
Date: Thu Sep 22 20:28:05 2011 -0700
girparser: fix parsing of nullable types
vala/valagirparser.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 966e6d1..bd25d9b 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1501,7 +1501,7 @@ public class Vala.GirParser : CodeVisitor {
}
}
- if (array_data != null) {
+ if (array_data != null && array_data.length != 0) {
type = new ArrayType (type, (int) array_data.length - 1, source_reference);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]