mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: force bool context for xorOp
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user