Skip to content
Snippets Groups Projects
Commit ae1b77ee authored by Mark OLESEN's avatar Mark OLESEN
Browse files

STYLE: force bool context for xorOp

parent 5d7d24df
Branches
Tags
No related merge requests found
......@@ -222,8 +222,8 @@ Op(cmptDivide, cmptDivide(x, y))
Op(stabilise, stabilise(x, y))
Op(max, max(x, y))
Op(min, min(x, y))
Op(minMagSqr, (magSqr(x)<=magSqr(y) ? x : y))
Op(maxMagSqr, (magSqr(x)>=magSqr(y) ? x : y))
Op(minMagSqr, (magSqr(x) <= magSqr(y) ? x : y))
Op(maxMagSqr, (magSqr(x) >= magSqr(y) ? x : y))
Op(minMod, minMod(x, y))
Op(bitAnd, (x & y))
......@@ -232,7 +232,7 @@ Op(bitXor, (x ^ y))
BoolOp(and, x && y)
BoolOp(or, x || y)
BoolOp(xor, x != y) // Or as (!x != !y) to force bool context?
BoolOp(xor, (!x) != (!y)) // With forced bool context
BoolOp(equal, x == y)
BoolOp(notEqual, x != y)
BoolOp(less, x < y)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment