From 0314075639465e3d85693a443e128c02e45e1b53 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 29 Sep 2017 11:33:40 +0200 Subject: [PATCH] revert the 'wasMoved' logic until the write barrier has been adapted --- lib/system/sysstr.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/system/sysstr.nim b/lib/system/sysstr.nim index a8d91b39cf..90201202c1 100644 --- a/lib/system/sysstr.nim +++ b/lib/system/sysstr.nim @@ -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: