closed #4513: change 1.0 to 1.0f to avoid the warning.