Fix some double->float conversions.