Merge pull request #3657 from oderwat/fix-excl-regression
Fix regression in set.excl code generation.
This commit is contained in:
commit
ca0715082c
1 changed files with 1 additions and 1 deletions
|
|
@ -1502,7 +1502,7 @@ proc genSetOp(p: BProc, e: PNode, d: var TLoc, op: TMagic) =
|
||||||
else:
|
else:
|
||||||
case op
|
case op
|
||||||
of mIncl: binaryStmtInExcl(p, e, d, "$1[(NU)($2)>>3] |=(1U<<($2&7U));$n")
|
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 mCard: unaryExprChar(p, e, d, "#cardSet($1, " & $size & ')')
|
||||||
of mLtSet, mLeSet:
|
of mLtSet, mLeSet:
|
||||||
getTemp(p, getSysType(tyInt), i) # our counter
|
getTemp(p, getSysType(tyInt), i) # our counter
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue