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:
|
of tyFloat..tyFloat64:
|
||||||
case skipTypes(a.typ, abstractRange).kind
|
case skipTypes(a.typ, abstractRange).kind
|
||||||
of tyInt..tyInt64, tyEnum, tyBool, tyChar:
|
of tyInt..tyInt64, tyEnum, tyBool, tyChar:
|
||||||
result = newFloatNodeT(toFloat(int(getOrdValue(a))), n)
|
result = newFloatNodeT(toBiggestFloat(getOrdValue(a)), n)
|
||||||
else:
|
else:
|
||||||
result = a
|
result = a
|
||||||
result.typ = n.typ
|
result.typ = n.typ
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue