Fixes #5821 (float32 literal comparison issue) (#5825)

* Remove processing hints for async procs.
* Fixes #5821.
This commit is contained in:
Dominik Picheta 2017-05-17 14:57:06 +01:00 • committed by Andreas Rumpf
commit 06415eb69d
4 changed files with 19 additions and 7 deletions

View file

@ -78,8 +78,10 @@ proc genLiteral(p: BProc, n: PNode, ty: PType): Rope =
[p.module.tmpBase, rope(id)])
else:
result = makeCString(n.strVal)
of nkFloatLit..nkFloat64Lit:
of nkFloatLit, nkFloat64Lit:
result = rope(n.floatVal.toStrMaxPrecision)
of nkFloat32Lit:
result = rope(n.floatVal.toStrMaxPrecision("f"))
else:
internalError(n.info, "genLiteral(" & $n.kind & ')')
result = nil