Make small changes to remove more warnings.

This includes removing all `const int' to `const float' conversion problem.