[libgee] Fix AbstractCollection.to_array method
- From: Didier 'Ptitjes' Villevalois <dvillevalois src gnome org>
- To: svn-commits-list gnome org
- Subject: [libgee] Fix AbstractCollection.to_array method
- Date: Mon, 27 Jul 2009 20:17:08 +0000 (UTC)
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]