summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-04-20 23:44:29 +0200
committerAndreas Rumpf <rumpf_a@web.de>2020-04-20 23:44:29 +0200
commit67d71bb76d4c3d78302a452623d4507c783c6cc9 (patch)
tree50a5573573d32ba99d237e4895ad8aab5509bf83
parent1bdc30bdb13422bd5eff830327582a938e7b76ac (diff)
downloadNim-67d71bb76d4c3d78302a452623d4507c783c6cc9.tar.gz
fixes #14038
-rw-r--r--lib/system/seqs_v2.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/seqs_v2.nim b/lib/system/seqs_v2.nim
index 097ab269c..175056f48 100644
--- a/lib/system/seqs_v2.nim
+++ b/lib/system/seqs_v2.nim
@@ -75,7 +75,7 @@ proc shrink*[T](x: var seq[T]; newLen: Natural) =
     setLen(x, newLen)
   else:
     mixin `=destroy`
-    sysAssert newLen <= x.len, "invalid newLen parameter for 'shrink'"
+    #sysAssert newLen <= x.len, "invalid newLen parameter for 'shrink'"
     when not supportsCopyMem(T):
       for i in countdown(x.len - 1, newLen):
         `=destroy`(x[i])