diff options
author | Araq <rumpf_a@web.de> | 2014-05-05 23:29:46 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-05-05 23:29:46 +0200 |
commit | a11ae9248f473b234d542ac9dc861568a0046d3e (patch) | |
tree | 853152150f64dfb4d141501b7c43100a70c8dd72 /compiler/vmgen.nim | |
parent | d0438540d00c64fe4fa140a6b7c448a2ae4a7110 (diff) | |
download | Nim-a11ae9248f473b234d542ac9dc861568a0046d3e.tar.gz |
fixes #1140
Diffstat (limited to 'compiler/vmgen.nim')
-rw-r--r-- | compiler/vmgen.nim | 1 |
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 |