summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-08-04 19:34:13 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-08-04 19:34:13 +0200
commit4a96a3d9a1011c7023a45bb9f921a339aea0e3f7 (patch)
tree572ec9babef92c93956cc1d385ecdd2b904449ab /compiler
parente8aa6f6c304d24ff1320b52a14558de5c7934d04 (diff)
downloadNim-4a96a3d9a1011c7023a45bb9f921a339aea0e3f7.tar.gz
attempt to fix #4065
Diffstat (limited to 'compiler')
-rw-r--r--compiler/vmgen.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index 366662258..61ab65360 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -664,8 +664,7 @@ proc genNarrowU(c: PCtx; n: PNode; dest: TDest) =
   let t = skipTypes(n.typ, abstractVar-{tyTypeDesc})
   # uint is uint64 in the VM, we we only need to mask the result for
   # other unsigned types:
-  if t.kind in {tyUInt8..tyUInt32, tyInt8..tyInt32} or
-      (t.kind == tyInt and t.size == 4):
+  if t.kind in {tyUInt8..tyUInt32, tyInt8..tyInt32}:
     c.gABC(n, opcNarrowU, dest, TRegister(t.size*8))
 
 proc genBinaryABCnarrow(c: PCtx; n: PNode; dest: var TDest; opc: TOpcode) =