Merge pull request #2150 from def-/gc2-compiling

Make gc2 compile again and fix some deprecation warnings
This commit is contained in:
Andreas Rumpf 2015-02-16 20:33:25 +01:00
commit 13c2d9b8e2
2 changed files with 73 additions and 71 deletions

View file

@ -208,7 +208,7 @@ proc setLengthSeq(seq: PGenericSeq, elemSize, newLen: int): PGenericSeq {.
when compileOption("gc", "v2"):
for i in newLen..result.len-1:
let len0 = gch.tempStack.len
forAllChildrenAux(cast[pointer](cast[TAddress](result) +%
forAllChildrenAux(cast[pointer](cast[ByteAddress](result) +%
GenericSeqSize +% (i*%elemSize)),
extGetCellType(result).base, waPush)
let len1 = gch.tempStack.len