2013-10-09 11:52 PM
Hello, I have a simple question:
uint32_t temp; temp |= ((uint32_t)1 << 16); without retyping it does not work (although if I add the expression to Watch, it shows expected 1 on 16th bit of temp). Why? I use Cosmic compiler and STM8S207... Thank You #shift2013-10-10 11:55 PM
2013-10-12 05:17 AM
Hello luca,
(1 << 16) does not set 16th bit ((uint32_t)(1 << 16) set 16th bit That is my problem. I would like to know the reason why. I have observed it with numbers >= 15.2013-10-21 09:35 AM