summary refs log tree commit diff stats
path: root/lib/core
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-03-26 09:50:16 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-03-26 09:51:31 +0100
commit802ecbc49ef2a79f7fdef60e24983bd2be0c3bad (patch)
tree44ea28d97f4aea81ce26398ee62593f1ddc48cd1 /lib/core
parent8e1c6e2e2d2f1a0835ecc37631cd2129c8df57c0 (diff)
downloadNim-802ecbc49ef2a79f7fdef60e24983bd2be0c3bad.tar.gz
macros: typo
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/macros.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index 85eb597b2..6525770eb 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -716,7 +716,7 @@ proc newLit*(f: float64): NimNode {.compileTime.} =
   result = newNimNode(nnkFloat64Lit)
   result.floatVal = f
 
-when compiles(float128):
+when declared(float128):
   proc newLit*(f: float128): NimNode {.compileTime.} =
     ## produces a new float literal node.
     result = newNimNode(nnkFloat128Lit)