From 60d64d1aeffe6020eb591eca4be7ae672e45edc0 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 3 Oct 2019 16:46:09 +0200 Subject: use system.move instead of system.shallowCopy if the GC mode requires it --- lib/pure/collections/tableimpl.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/pure/collections/tableimpl.nim') diff --git a/lib/pure/collections/tableimpl.nim b/lib/pure/collections/tableimpl.nim index 7404a484b..85bffd60f 100644 --- a/lib/pure/collections/tableimpl.nim +++ b/lib/pure/collections/tableimpl.nim @@ -99,7 +99,7 @@ template delImplIdx(t, i) = when defined(js): t.data[j] = t.data[i] else: - shallowCopy(t.data[j], t.data[i]) # data[j] will be marked EMPTY next loop + t.data[j] = move(t.data[i]) # data[j] will be marked EMPTY next loop template delImpl() {.dirty.} = var hc: Hash -- cgit 1.4.1-2-gfad0