diff options
author | jbevain <jbevain@gmail.com> | 2010-05-11 20:07:29 +0400 |
---|---|---|
committer | jbevain <jbevain@gmail.com> | 2010-05-11 20:07:29 +0400 |
commit | 3735fbceebdffa162a66ca4412d577071223eb0d (patch) | |
tree | 6cd3d3bd91a00ea98da2a434e1e0cc9ee5c427cd /Mono.Collections.Generic | |
parent | bb02d3ba7c1680175db31645c087ac6bf950745e (diff) |
fix computation of indexes for variables and parameters
Diffstat (limited to 'Mono.Collections.Generic')
-rw-r--r-- | Mono.Collections.Generic/Collection.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mono.Collections.Generic/Collection.cs b/Mono.Collections.Generic/Collection.cs index 0fbfccf..d7628f0 100644 --- a/Mono.Collections.Generic/Collection.cs +++ b/Mono.Collections.Generic/Collection.cs @@ -140,8 +140,9 @@ namespace Mono.Collections.Generic { if (size == items.Length) Grow (1); - Shift (index, 1); OnInsert (item, index); + + Shift (index, 1); items [index] = item; version++; } |