summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-12-21 00:36:50 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-12-21 00:36:50 +0100
commitca0715082c24a90d7292d3b95cfd70de966f4f62 (patch)
tree877eac1c2b78a1bc5d8e5a70dcc4a30ef155459c /compiler
parentd6fbc1425f52be6a488dc0652d259ba970f43708 (diff)
parent5a028b3956fe592d08e16a6ce2ceafcb1dd748ac (diff)
downloadNim-ca0715082c24a90d7292d3b95cfd70de966f4f62.tar.gz
Merge pull request #3657 from oderwat/fix-excl-regression
Fix regression in set.excl code generation.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ccgexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim
index df3b655e3..d691b8ea2 100644
--- a/compiler/ccgexprs.nim
+++ b/compiler/ccgexprs.nim
@@ -1502,7 +1502,7 @@ proc genSetOp(p: BProc, e: PNode, d: var TLoc, op: TMagic) =
   else:
     case op
     of mIncl: binaryStmtInExcl(p, e, d, "$1[(NU)($2)>>3] |=(1U<<($2&7U));$n")
-    of mExcl: binaryStmtInExcl(p, e, d, "$1[(NU)($2)>>3]] &= ~(1U<<($2&7U));$n")
+    of mExcl: binaryStmtInExcl(p, e, d, "$1[(NU)($2)>>3] &= ~(1U<<($2&7U));$n")
     of mCard: unaryExprChar(p, e, d, "#cardSet($1, " & $size & ')')
     of mLtSet, mLeSet:
       getTemp(p, getSysType(tyInt), i) # our counter