diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-01-29 08:40:03 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 17:40:03 +0100 |
commit | 81a43791f932291c0654e0a5fd6d53ede7a7c1dc (patch) | |
tree | cee2172db6476039cb9c0976dc6c0e57903d36b1 /compiler/ccgexprs.nim | |
parent | 3ab127423199fa71462be7263b1820f974c3d7c2 (diff) | |
download | Nim-81a43791f932291c0654e0a5fd6d53ede7a7c1dc.tar.gz |
fix critical bug discovered by #11591 (#13290) [backport]
Diffstat (limited to 'compiler/ccgexprs.nim')
-rw-r--r-- | compiler/ccgexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index 84d491cf4..10b17663e 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -1832,7 +1832,7 @@ proc genSetOp(p: BProc, e: PNode, d: var TLoc, op: TMagic) = of mCard: if size <= 4: unaryExprChar(p, e, d, "#countBits32($1)") else: unaryExprChar(p, e, d, "#countBits64($1)") - of mLtSet: binaryExprChar(p, e, d, "(($1 & ~ $2 ==0)&&($1 != $2))") + of mLtSet: binaryExprChar(p, e, d, "((($1 & ~ $2)==0)&&($1 != $2))") of mLeSet: binaryExprChar(p, e, d, "(($1 & ~ $2)==0)") of mEqSet: binaryExpr(p, e, d, "($1 == $2)") of mMulSet: binaryExpr(p, e, d, "($1 & $2)") |