float64 is now an alias to 'float'; fixes #545

This commit is contained in:
Araq
2013-08-30 12:24:54 +02:00
parent 1ad1980f1f
commit 7056ceda67
8 changed files with 50 additions and 19 deletions

View File

@@ -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: