From ee43fc82d5c8765212f67dc962e49a857884ce40 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 6 Jul 2017 13:52:10 +0200 Subject: bugfix: keep the information of a raw float literal in the AST --- compiler/semexprs.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler/semexprs.nim') diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 6fefda52d..76d4be766 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -2187,11 +2187,11 @@ proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode = if result.typ == nil: result.typ = getSysType(tyUInt32) of nkUInt64Lit: if result.typ == nil: result.typ = getSysType(tyUInt64) - of nkFloatLit: - if result.typ == nil: result.typ = getFloatLitType(result) + #of nkFloatLit: + # if result.typ == nil: result.typ = getFloatLitType(result) of nkFloat32Lit: if result.typ == nil: result.typ = getSysType(tyFloat32) - of nkFloat64Lit: + of nkFloat64Lit, nkFloatLit: if result.typ == nil: result.typ = getSysType(tyFloat64) of nkFloat128Lit: if result.typ == nil: result.typ = getSysType(tyFloat128) -- cgit 1.4.1-2-gfad0