Fixed annoying float conversion compiler warnings