diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-07-06 13:52:10 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-07-06 13:52:21 +0200 |
commit | ee43fc82d5c8765212f67dc962e49a857884ce40 (patch) | |
tree | 19539a6cc429d3b18b8002b32a6bc77cc2e5fc9d /compiler/semexprs.nim | |
parent | 82175b43bb48612e11caa515d315726aec29ccc3 (diff) | |
download | Nim-ee43fc82d5c8765212f67dc962e49a857884ce40.tar.gz |
bugfix: keep the information of a raw float literal in the AST
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 6 |
1 files changed, 3 insertions, 3 deletions
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) |