[libgee] Fix AbstractCollection.to_array method



commit b01da2bc6a3896e57b04b395799f144472f76da5
Author: Didier 'Ptitjes <ptitjes free fr>
Date:   Mon Jul 27 22:16:54 2009 +0200

    Fix AbstractCollection.to_array method

 gee/abstractcollection.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gee/abstractcollection.vala b/gee/abstractcollection.vala
index 42b2a17..bcc7063 100644
--- a/gee/abstractcollection.vala
+++ b/gee/abstractcollection.vala
@@ -44,7 +44,7 @@ public abstract class Gee.AbstractCollection<G> : Object, Iterable<G>, Collectio
 		G[] array = new G[size];
 		int index = 0;
 		foreach (G element in this) {
-			array[index] = element;
+			array[index++] = element;
 		}
 		return array;
 	}



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