* fix #16458; make useNimRtl compile for --gc:orc/arc * fix tests
This commit is contained in:
parent
27e548140b
commit
b936bfd01a
4 changed files with 13 additions and 5 deletions
|
|
@ -75,7 +75,8 @@ proc prepareSeqAdd(len: int; p: pointer; addlen, elemSize, elemAlign: int): poin
|
|||
|
||||
proc shrink*[T](x: var seq[T]; newLen: Natural) {.tags: [], raises: [].} =
|
||||
when nimvm:
|
||||
setLen(x, newLen)
|
||||
{.cast(tags: []).}:
|
||||
setLen(x, newLen)
|
||||
else:
|
||||
#sysAssert newLen <= x.len, "invalid newLen parameter for 'shrink'"
|
||||
when not supportsCopyMem(T):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue