BUGFIX: system.insert

This commit is contained in:
Andreas Rumpf
2010-02-02 19:21:08 +01:00
parent 6ecbed7284
commit c7bd3f94cd

View File

@@ -719,7 +719,7 @@ proc insert*[T](x: var seq[T], item: T, i = 0) {.noSideEffect.} =
var j = xl-1
while j >= i:
x[j+1] = x[j]
inc(j)
dec(j)
x[i] = item