bugfix topenarrayrepr works again
This commit is contained in:
parent
b0742c5b27
commit
a0d172cd85
1 changed files with 2 additions and 1 deletions
|
|
@ -1151,7 +1151,8 @@ proc genRepr(p: BProc, e: PNode, d: var TLoc) =
|
||||||
of tyOpenArray:
|
of tyOpenArray:
|
||||||
var b: TLoc
|
var b: TLoc
|
||||||
case a.t.kind
|
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:
|
of tyString, tySequence:
|
||||||
putIntoDest(p, b, e.typ,
|
putIntoDest(p, b, e.typ,
|
||||||
ropef("$1->data, $1->$2", [rdLoc(a), lenField()]))
|
ropef("$1->data, $1->$2", [rdLoc(a), lenField()]))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue