diff options
Diffstat (limited to 'compiler/ccgliterals.nim')
-rw-r--r-- | compiler/ccgliterals.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ccgliterals.nim b/compiler/ccgliterals.nim index b51348508..ee56da586 100644 --- a/compiler/ccgliterals.nim +++ b/compiler/ccgliterals.nim @@ -55,8 +55,8 @@ proc genStringLiteralV1(m: BModule; n: PNode): Rope = proc genStringLiteralDataOnlyV2(m: BModule, s: string; result: Rope; isConst: bool) = m.s[cfsData].addf("static $4 struct {$n" & - " NI cap; void* allocator; NIM_CHAR data[$2+1];$n" & - "} $1 = { $2, NIM_NIL, $3 };$n", + " NI cap; NIM_CHAR data[$2+1];$n" & + "} $1 = { $2 | NIM_STRLIT_FLAG, $3 };$n", [result, rope(s.len), makeCString(s), rope(if isConst: "const" else: "")]) |