macros: typo

This commit is contained in:
Andreas Rumpf 2019-03-26 09:50:16 +01:00
commit 802ecbc49e

View file

@ -716,7 +716,7 @@ proc newLit*(f: float64): NimNode {.compileTime.} =
result = newNimNode(nnkFloat64Lit) result = newNimNode(nnkFloat64Lit)
result.floatVal = f result.floatVal = f
when compiles(float128): when declared(float128):
proc newLit*(f: float128): NimNode {.compileTime.} = proc newLit*(f: float128): NimNode {.compileTime.} =
## produces a new float literal node. ## produces a new float literal node.
result = newNimNode(nnkFloat128Lit) result = newNimNode(nnkFloat128Lit)