diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-03-04 22:44:23 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-03-04 22:44:23 +0100 |
commit | f90735412169f92196a0f425e02dba5e190ac8a3 (patch) | |
tree | c5cdd06440bb0608d653b746d4ae4a2056051fa9 /tests/destructor/tatomicptrs.nim | |
parent | 3e922d0fec0dbb28ef1182cf27d114759e0f47b6 (diff) | |
download | Nim-f90735412169f92196a0f425e02dba5e190ac8a3.tar.gz |
make tests green again
Diffstat (limited to 'tests/destructor/tatomicptrs.nim')
-rw-r--r-- | tests/destructor/tatomicptrs.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/destructor/tatomicptrs.nim b/tests/destructor/tatomicptrs.nim index fd8fc34d9..96d145076 100644 --- a/tests/destructor/tatomicptrs.nim +++ b/tests/destructor/tatomicptrs.nim @@ -11,7 +11,6 @@ deallocating allocating deallocating ''' - cmd: '''nim c --newruntime $file''' """ type @@ -125,7 +124,7 @@ proc `=`*[T](m: var MySeq[T], m2: MySeq[T]) = `=destroy`(m) m.len = m2.len - let bytes = m.len.int * sizeof(float) + let bytes = m.len.int * sizeof(float) if bytes > 0: m.data = cast[ptr UncheckedArray[T]](allocShared(bytes)) copyMem(m.data, m2.data, bytes) |