Fix floating-point conversion warnings