For example I have this code:

            /* increase gravity */
            if((1000/60) /* 60 Hz */ > m_iGravity)
Now 'm_iGravity' is declared as type 'int'. The compiler warning is: "comparison between signed and unsigned integer expressions".

When I cast 'm_iGravity' as '(unsigned int)' I still get this warning, but if I modify the declaration of 'm_iGravity' to 'unsigned int' I get no warning. I also tried casting the result of the division result, but no luck.

Can anyone give me a hand with this?