Bit wise ‘&’ with signed vs unsigned operand
That’s indeed an interesting corner case. It only occurs here because you use uint16_t for the unsigned type when you architecture use 32 bits for ìnt Here is a extract from Clause 5 Expressions from draft n4296 for C++14 (emphasize mine): 10 Many binary operators that expect operands of arithmetic or enumeration type cause conversions … Read more