Clue
Clue copied to clipboard
Operator precedence gets messed up when using bitwise operators on bitlib mode
There are no operator precedence rules followed when transforming bitwise operations into bitlib function calls when using --bitwise library
or equivalent. The below code
print( ~2 & a == 4 * b )
will be compiled into
print(bit.bnot(bit.band(2, a==4*b)));
which would be wrong.