From 8bcaee1fdf2054f026d6fdb760f67624b6dfe0e6 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 6 Jul 2018 15:53:32 +0200 Subject: make tmemfile2 work again --- compiler/ccgexprs.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/ccgexprs.nim') diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index fdafa1927..9b31167e3 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -1769,6 +1769,7 @@ proc convStrToCStr(p: BProc, n: PNode, d: var TLoc) = initLocExpr(p, n.sons[0], a) putIntoDest(p, d, n, ropecg(p.module, "#nimToCStringConv($1)", [rdLoc(a)]), +# "($1 ? $1->data : (NCSTRING)\"\")" % [a.rdLoc], a.storage) proc convCStrToStr(p: BProc, n: PNode, d: var TLoc) = -- cgit 1.4.1-2-gfad0