From 7a4b343d8d40193138b54967bfef2b66c387f877 Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Tue, 12 Jun 2018 12:39:54 +0300 Subject: Added NIM_STRLIT_FLAG to seq literals --- compiler/ccgexprs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index b5dcc76e5..82cc3a1fb 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -2436,7 +2436,7 @@ proc genConstSimpleList(p: BProc, n: PNode): Rope = addf(result, "}$n", []) proc genConstSeq(p: BProc, n: PNode, t: PType): Rope = - var data = "{{$1, $1}" % [n.len.rope] + var data = "{{$1, $1 | NIM_STRLIT_FLAG}" % [n.len.rope] if n.len > 0: # array part needs extra curlies: data.add(", {") -- cgit 1.4.1-2-gfad0