Dear all,
My compiler throw a waring "warning: #61-D: integer operation result is out of range" but I think is a bug of the compiler because it have no sense. This is the warning line:
GPIOB->CRL &= ~(0xF << (7 * 4))
0xF << 28 times is in the range of the CRL register... can anybody tell me the reason of this?
Thanks for all
Hi,
Thanks a lot, yes, better with "U".
I think I will remove this post because "bug" in the summary is not good for keil... Don't know if I can remove this.
Thanks
No, you can't remove it.
But dont' worry. This forum is full of "bug" threads ;)
And yes - it is good practice to think about your data types and consider using u after numbers when you want unsigned arithmetic.
I think I will remove this post because "bug" in the summary is not good for keil at least, as opposed to many, you did put a question mark after 'bug'
Erik
hehe... of course, is more probable that the supossed bug is a error in my code instead of bug...
It certainly is: www.catb.org/.../smart-questions.html