summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-desktop>2010-02-02 19:21:08 +0100
committerAndreas Rumpf <andreas@andreas-desktop>2010-02-02 19:21:08 +0100
commitc7bd3f94cd6377f2a64ce67b59a4a31118bdabbb (patch)
tree27003261584e678be93a123f99fd19de8241e160 /lib
parent6ecbed72840bd080623299ed6b6d3ef8a2e0033d (diff)
downloadNim-c7bd3f94cd6377f2a64ce67b59a4a31118bdabbb.tar.gz
BUGFIX: system.insert
Diffstat (limited to 'lib')
-rwxr-xr-xlib/system.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 13d0b4746..79c014a7c 100755
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -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