summary refs log tree commit diff stats
path: root/compiler/vmgen.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-05-05 23:29:46 +0200
committerAraq <rumpf_a@web.de>2014-05-05 23:29:46 +0200
commita11ae9248f473b234d542ac9dc861568a0046d3e (patch)
tree853152150f64dfb4d141501b7c43100a70c8dd72 /compiler/vmgen.nim
parentd0438540d00c64fe4fa140a6b7c448a2ae4a7110 (diff)
downloadNim-a11ae9248f473b234d542ac9dc861568a0046d3e.tar.gz
fixes #1140
Diffstat (limited to 'compiler/vmgen.nim')
-rw-r--r--compiler/vmgen.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index c5eb67025..ba1b33e77 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -331,6 +331,7 @@ proc canonValue*(n: PNode): PNode =
 proc rawGenLiteral(c: PCtx; n: PNode): int =
   result = c.constants.len
   assert(n.kind != nkCall)
+  n.flags.incl nfAllConst
   c.constants.add n.canonValue
   internalAssert result < 0x7fff