Fixing a double-->float conversion warning