diff options
author | Araq <rumpf_a@web.de> | 2011-08-16 21:24:30 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-08-16 21:24:30 +0200 |
commit | a0d172cd851fc5f293a89b4e9460000f5870203c (patch) | |
tree | b2a2b38eacc805b443372b1716f0a26f188bd967 /compiler | |
parent | b0742c5b277aea4ef0564c3e519a998ef867b5f8 (diff) | |
download | Nim-a0d172cd851fc5f293a89b4e9460000f5870203c.tar.gz |
bugfix topenarrayrepr works again
Diffstat (limited to 'compiler')
-rwxr-xr-x | compiler/ccgexprs.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index 13b26f6ac..3a17b68fe 100755 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -1151,7 +1151,8 @@ proc genRepr(p: BProc, e: PNode, d: var TLoc) = of tyOpenArray: var b: TLoc case a.t.kind - of tyOpenArray: putIntoDest(p, b, e.typ, rdLoc(a)) + of tyOpenArray: + putIntoDest(p, b, e.typ, ropef("$1, $1Len0", [rdLoc(a)])) of tyString, tySequence: putIntoDest(p, b, e.typ, ropef("$1->data, $1->$2", [rdLoc(a), lenField()])) |