summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-08-26 16:48:42 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-08-26 16:48:42 +0200
commit2b0e9aa16701e83c1f54f029cf44f5717740dbfa (patch)
treec44e9f4ad31274bcd4dd30b60665638bc766f229 /compiler
parent976e95e17ca741dbae5ff33852e725104771ac4c (diff)
downloadNim-2b0e9aa16701e83c1f54f029cf44f5717740dbfa.tar.gz
fixes regression
Diffstat (limited to 'compiler')
-rw-r--r--compiler/vmgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index 3fc3f7556..6bfc33f00 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -748,7 +748,7 @@ proc genConv(c: PCtx; n, arg: PNode; dest: var TDest; opc=opcConv) =
   let tmp = c.genx(arg)
   if dest < 0: dest = c.getTemp(n.typ)
   c.gABC(n, opc, dest, tmp)
-  c.gABx(n, opc, 0, genType(c, n.typ))
+  c.gABx(n, opc, 0, genType(c, n.typ.skipTypes({tyStatic})))
   c.gABx(n, opc, 0, genType(c, arg.typ.skipTypes({tyStatic})))
   c.freeTemp(tmp)