From 0f5261e9711c3fd57241874963bd5e45b11ed65e Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 2 Nov 2017 22:09:58 +0100 Subject: [PATCH] fixes #6675 --- lib/system.nim | 4 ++-- tests/array/troof1.nim | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/system.nim b/lib/system.nim index 92c5e009f..0cae4da87 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3493,14 +3493,14 @@ proc `[]`*[Idx, T, U, V](a: array[Idx, T], x: HSlice[U, V]): seq[T] = let xa = a ^^ x.a let L = (a ^^ x.b) - xa + 1 result = newSeq[T](L) - for i in 0..