Fixed type conflict (CGFloat, which can be double vs float).