Quote:
Originally Posted by Kobaz
When comparing an int with an unsigned int, are both promoted to a long by the compiler?
|
You should get in the habbit of casting the variables to the degree of precision you are actually trying to get. By doing so, you never need to smoke test that procedure as you know exactly what will happen every time. It's good programming practice that unfortunately rarely makes it to the hobbyist world.