diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-10-03 16:46:09 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-10-04 09:48:45 +0200 |
commit | 60d64d1aeffe6020eb591eca4be7ae672e45edc0 (patch) | |
tree | d66226b1c2ba3328b3d3ba91581c50585dee0480 /lib/pure/collections/tableimpl.nim | |
parent | 68ce808db131081a565e9fb2dfca3d66197d8175 (diff) | |
download | Nim-60d64d1aeffe6020eb591eca4be7ae672e45edc0.tar.gz |
use system.move instead of system.shallowCopy if the GC mode requires it
Diffstat (limited to 'lib/pure/collections/tableimpl.nim')
-rw-r--r-- | lib/pure/collections/tableimpl.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |