fixes #1463
This commit is contained in:
parent
70fe773bbe
commit
039da42401
1 changed files with 1 additions and 1 deletions
|
|
@ -543,7 +543,7 @@ proc foldConv*(n, a: PNode; check = false): PNode =
|
|||
of tyFloat..tyFloat64:
|
||||
case skipTypes(a.typ, abstractRange).kind
|
||||
of tyInt..tyInt64, tyEnum, tyBool, tyChar:
|
||||
result = newFloatNodeT(toFloat(int(getOrdValue(a))), n)
|
||||
result = newFloatNodeT(toBiggestFloat(getOrdValue(a)), n)
|
||||
else:
|
||||
result = a
|
||||
result.typ = n.typ
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue