[8153] Fixed some implicit float->int cast warnings.