diff options
author | Evan Nemerson <evan@coeus-group.com> | 2011-09-22 20:28:05 -0700 |
---|---|---|
committer | Evan Nemerson <evan@coeus-group.com> | 2011-09-23 13:07:11 -0700 |
commit | 5dc28ed8a422f708e5ce155838e183d3ce3e5a19 (patch) | |
tree | e1245c1c60868fe702ae297818b77aed32a8a1a6 /vala | |
parent | d9a729e9c45c137900491214afb8337a8a9ab87d (diff) | |
download | vala-5dc28ed8a422f708e5ce155838e183d3ce3e5a19.tar.gz |
girparser: fix parsing of nullable types
Diffstat (limited to 'vala')
-rw-r--r-- | vala/valagirparser.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala index 966e6d19c..bd25d9bec 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); } |