From a6460e2c918969d1662e6db734994743a179750b Mon Sep 17 00:00:00 2001 From: Hans Raaf Date: Sun, 7 Feb 2016 01:32:54 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20f=C3=BCr=20Char=20to=20String=20in=20PHP.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compiler/jsgen.nim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index 909785a28..0099f48a9 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -470,6 +470,10 @@ proc arith(p: PProc, n: PNode, r: var TCompRes, op: TMagic) = var x: TCompRes gen(p, n.sons[1], x) r.res = "$#[$#]" % [genEnumInfoPHP(p, n.sons[1].typ), x.rdLoc] + elif op == mCharToStr: + var x: TCompRes + gen(p, n.sons[1], x) + r.res = "chr($#)" % [x.rdLoc] else: gen(p, n.sons[1], r) else: