diff options
author | Hans Raaf <hara@oderwat.de> | 2016-02-07 01:32:54 +0100 |
---|---|---|
committer | Hans Raaf <hara@oderwat.de> | 2016-02-07 01:49:13 +0100 |
commit | a6460e2c918969d1662e6db734994743a179750b (patch) | |
tree | 59d0999aed1094b5c1b126e0f8f41ebb9bc8450d /compiler | |
parent | fa6692f33faf00976a0ca5d4209b4942b81fdf15 (diff) | |
download | Nim-a6460e2c918969d1662e6db734994743a179750b.tar.gz |
Fix für Char to String in PHP.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/jsgen.nim | 4 |
1 files changed, 4 insertions, 0 deletions
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: |