[crt] Fix loss of precision warnings.

This addressed mixed usage of int/long.