summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2019-01-31 18:48:39 +0000
committerArne Döring <arne.doering@gmx.net>2019-01-31 19:48:39 +0100
commit1d5437e9d2c5800e4b90e87e32acc600c52cf739 (patch)
treecdec469686dc2a54f7c2d6a51503705d4f21a675 /compiler
parentfc99ddc648d994abaf839cc8b93b579d95313df7 (diff)
downloadNim-1d5437e9d2c5800e4b90e87e32acc600c52cf739.tar.gz
vm fix for bitwise signed ints (#10507)
* fixes #10482

* add missing file

* bug fix
Diffstat (limited to 'compiler')
-rw-r--r--compiler/vmgen.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index f87821da4..4b1551884 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -987,10 +987,10 @@ proc genMagic(c: PCtx; n: PNode; dest: var TDest; m: TMagic) =
     c.freeTemp(tmp2)
 
   of mShlI: genBinaryABCnarrowU(c, n, dest, opcShlInt)
-  of mAshrI: genBinaryABCnarrow(c, n, dest, opcAshrInt)
-  of mBitandI: genBinaryABCnarrowU(c, n, dest, opcBitandInt)
-  of mBitorI: genBinaryABCnarrowU(c, n, dest, opcBitorInt)
-  of mBitxorI: genBinaryABCnarrowU(c, n, dest, opcBitxorInt)
+  of mAshrI: genBinaryABC(c, n, dest, opcAshrInt)
+  of mBitandI: genBinaryABC(c, n, dest, opcBitandInt)
+  of mBitorI: genBinaryABC(c, n, dest, opcBitorInt)
+  of mBitxorI: genBinaryABC(c, n, dest, opcBitxorInt)
   of mAddU: genBinaryABCnarrowU(c, n, dest, opcAddu)
   of mSubU: genBinaryABCnarrowU(c, n, dest, opcSubu)
   of mMulU: genBinaryABCnarrowU(c, n, dest, opcMulu)