revert the 'wasMoved' logic until the write barrier has been adapted
This commit is contained in:
parent
70e94b8c9e
commit
0314075639
1 changed files with 2 additions and 1 deletions
|
|
@ -95,7 +95,8 @@ proc cstrToNimstr(str: cstring): NimString {.compilerRtl.} =
|
|||
if str == nil: NimString(nil)
|
||||
else: toNimStr(str, str.len)
|
||||
|
||||
template wasMoved(x: NimString): bool = (x.reserved and seqShallowFlag) != 0
|
||||
template wasMoved(x: NimString): bool = false
|
||||
# (x.reserved and seqShallowFlag) != 0
|
||||
|
||||
proc copyString(src: NimString): NimString {.compilerRtl.} =
|
||||
if src != nil:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue