[libgee] Fix compilation of priorityqueue.vala on vala from git
- From: Maciej Marcin Piechotka <mpiechotka src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgee] Fix compilation of priorityqueue.vala on vala from git
- Date: Mon, 19 Dec 2011 17:07:19 +0000 (UTC)
commit af59223970a16d394b70da050b1030d9f578e879
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date: Mon Dec 19 04:16:32 2011 +0100
Fix compilation of priorityqueue.vala on vala from git
gee/priorityqueue.vala | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gee/priorityqueue.vala b/gee/priorityqueue.vala
index 82e5229..b1a07ad 100644
--- a/gee/priorityqueue.vala
+++ b/gee/priorityqueue.vala
@@ -53,7 +53,11 @@ public class Gee.PriorityQueue<G> : Gee.AbstractQueue<G> {
private Type2Node<G>? _lm_head = null;
private Type2Node<G>? _lm_tail = null;
private Type1Node<G>? _p = null;
+#if VALA_0_16
+ private Type1Node<G>?[] _a = new Type1Node<G>?[0];
+#else
private Type1Node<G>?[] _a = new Type1Node<G>[0];
+#endif
private NodePair<G>? _lp_head = null;
private NodePair<G>? _lp_tail = null;
private bool[] _b = new bool[0];
@@ -323,7 +327,11 @@ public class Gee.PriorityQueue<G> : Gee.AbstractQueue<G> {
_lm_head = null;
_lm_tail = null;
_p = null;
+#if VALA_0_16
+ _a = new Type1Node<G>?[0];
+#else
_a = new Type1Node<G>[0];
+#endif
_lp_head = null;
_lp_tail = null;
_b = new bool[0];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]