summaryrefslogtreecommitdiff
path: root/Source/Core/PureCollections.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/PureCollections.cs')
-rw-r--r--Source/Core/PureCollections.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/PureCollections.cs b/Source/Core/PureCollections.cs
index 15a6c629..f984ecd4 100644
--- a/Source/Core/PureCollections.cs
+++ b/Source/Core/PureCollections.cs
@@ -569,7 +569,7 @@ namespace PureCollections {
object[] n = new object[card];
int ct = 0;
Contract.Assert(this.elems != null);
- for (int i = 0; i < elems.Length; i++)
+ for (int i = 0; i < card; i++)
n[ct++] = elems[i];
return n;
}