mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-10 06:54:16 +00:00
fixes #1463
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user