fixes #916
This commit is contained in:
parent
0e7220ff9c
commit
57689037c5
3 changed files with 14 additions and 5 deletions
|
|
@ -502,7 +502,7 @@ proc foldConv*(n, a: PNode; check = false): PNode =
|
|||
of tyInt..tyInt64:
|
||||
case skipTypes(a.typ, abstractRange).kind
|
||||
of tyFloat..tyFloat64:
|
||||
result = newIntNodeT(system.toInt(getFloat(a)), n)
|
||||
result = newIntNodeT(int(getFloat(a)), n)
|
||||
of tyChar: result = newIntNodeT(getOrdValue(a), n)
|
||||
else:
|
||||
result = a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue