Fixed all of the warnings the compiler was throwing about float-int conversions.