fixes #2589
This commit is contained in:
parent
3b00d9cc7a
commit
a7a2fa63aa
1 changed files with 1 additions and 1 deletions
|
|
@ -524,7 +524,7 @@ proc rangeCheck(n: PNode, value: BiggestInt) =
|
|||
proc foldConv*(n, a: PNode; check = false): PNode =
|
||||
# XXX range checks?
|
||||
case skipTypes(n.typ, abstractRange).kind
|
||||
of tyInt..tyInt64:
|
||||
of tyInt..tyInt64, tyUInt..tyUInt64:
|
||||
case skipTypes(a.typ, abstractRange).kind
|
||||
of tyFloat..tyFloat64:
|
||||
result = newIntNodeT(int(getFloat(a)), n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue