4 ms·
I didn't believe you but you're right. The uint8_t gets promoted to int, not unsigned int. https://godbolt.org/z/icQHw3 https://godbolt.org/z/icQHw3
by dirtydroog 7y ago
I didn't believe you but you're right. The uint8_t gets promoted to int, not unsigned int.
https://godbolt.org/z/icQHw3 https://godbolt.org/z/icQHw3
- saagarjha 7y agoC’s integer promotion rules aren’t the best.