I tried the following to cast the division result:

Code:
            /* increase gravity */
            if((int)(1000/60) /* 60 Hz */ > m_iGravity)
            {
                --m_iGravity;
            }