From 4bd9f32f335b43d1cdcfbbd99cbe91bb478a400c Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 16 Nov 2018 00:13:39 +0100 Subject: --gc:destructors: hello world example compiles and runs --- compiler/ccgliterals.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/ccgliterals.nim') diff --git a/compiler/ccgliterals.nim b/compiler/ccgliterals.nim index 34677ec06..ccfa49a1d 100644 --- a/compiler/ccgliterals.nim +++ b/compiler/ccgliterals.nim @@ -69,7 +69,7 @@ proc genStringLiteralV2(m: BModule; n: PNode): Rope = addf(m.s[cfsData], "static const NimStringV2 $1 = {$2, (NimStrPayload*)&$3};$n", [result, rope(len(n.strVal)), pureLit]) else: - result = m.tmpBase & rope(id) + result = m.tmpBase & rope(id+1) proc genStringLiteralV2Const(m: BModule; n: PNode): Rope = let id = nodeTableTestOrSet(m.dataCache, n, m.labels) -- cgit 1.4.1-2-gfad0