fixes #751
This commit is contained in:
parent
daf9dd701e
commit
b3f390bd48
1 changed files with 2 additions and 2 deletions
|
|
@ -1398,10 +1398,10 @@ proc genSetOp(p: BProc, e: PNode, d: var TLoc, op: TMagic) =
|
||||||
of mIncl:
|
of mIncl:
|
||||||
var ts = "NI" & $(size * 8)
|
var ts = "NI" & $(size * 8)
|
||||||
binaryStmtInExcl(p, e, d,
|
binaryStmtInExcl(p, e, d,
|
||||||
"$1 |=((" & ts & ")(1)<<(($2)%(sizeof(" & ts & ")*8)));$n")
|
"$1 |= ((" & ts & ")1)<<(($2)%(sizeof(" & ts & ")*8));$n")
|
||||||
of mExcl:
|
of mExcl:
|
||||||
var ts = "NI" & $(size * 8)
|
var ts = "NI" & $(size * 8)
|
||||||
binaryStmtInExcl(p, e, d, "$1 &= ~((" & ts & ")(1) << (($2) % (sizeof(" &
|
binaryStmtInExcl(p, e, d, "$1 &= ~(((" & ts & ")1) << (($2) % (sizeof(" &
|
||||||
ts & ")*8)));$n")
|
ts & ")*8)));$n")
|
||||||
of mCard:
|
of mCard:
|
||||||
if size <= 4: unaryExprChar(p, e, d, "#countBits32($1)")
|
if size <= 4: unaryExprChar(p, e, d, "#countBits32($1)")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue