I've had a series of bugs over the last month due to mistyping of "&" instead of "&&" in C.
My latest one was simple - i.e. I wrote
value = data && 0x0123
It was obvious after I hit a break and saw the value was 0 or 1, but I want a way to catch this earlier, similar to coding
if (1 == END) ...
to catch misuse of =
and ==
.
Any ideas?