parent
8407a57499
commit
afbcd1b330
34 changed files with 530 additions and 314 deletions
|
|
@ -489,8 +489,8 @@ proc transformConv(c: PTransf, n: PNode): PTransNode =
|
|||
result = newTransNode(nkChckRange, n, 3)
|
||||
dest = skipTypes(n.typ, abstractVar)
|
||||
result[0] = transform(c, n.sons[1])
|
||||
result[1] = newIntTypeNode(nkIntLit, firstOrd(c.graph.config, dest), dest).PTransNode
|
||||
result[2] = newIntTypeNode(nkIntLit, lastOrd(c.graph.config, dest), dest).PTransNode
|
||||
result[1] = newIntTypeNode(firstOrd(c.graph.config, dest), dest).PTransNode
|
||||
result[2] = newIntTypeNode(lastOrd(c.graph.config, dest), dest).PTransNode
|
||||
of tyFloat..tyFloat128:
|
||||
# XXX int64 -> float conversion?
|
||||
if skipTypes(n.typ, abstractVar).kind == tyRange:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue