Fix für Char to String in PHP.
This commit is contained in:
parent
fa6692f33f
commit
a6460e2c91
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue