diff options
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index d88cc28b6..354cbcbd1 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -1808,7 +1808,7 @@ proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode = of nkUInt64Lit: if result.typ == nil: result.typ = getSysType(tyUInt64) of nkFloatLit: - if result.typ == nil: result.typ = getSysType(tyFloat) + if result.typ == nil: result.typ = getFloatLitType(result) of nkFloat32Lit: if result.typ == nil: result.typ = getSysType(tyFloat32) of nkFloat64Lit: |