#strangethings happen if one has wrong #assupmtions... Currently I've #code running on a #microcontroller using unsigned integer variables (16 bit), calculating a bitwise or with these values (hexadecimal, language C):
v = 0x0400;
r = 0x03c2;
r |= v;
...but it seems I get r = 0x0fc2. 😅 So there must be anything I currently don't see...
(Correct would be 0x07c2)