diff --git a/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.cpp b/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.cpp index 145ea6a6e7..de746ad5ad 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.cpp +++ b/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.cpp @@ -508,11 +508,11 @@ void SimDisplay::MoveEye(float x, float z) { // Exponential calculate maxValue // https://forum.freecad.org/viewtopic.php?t=96939 - const float arg1 = 124.938; - const float arg2 = 578.754; - const float arg3 = -20.7993; + const float arg1 = 124.938F; + const float arg2 = 578.754F; + const float arg3 = -20.7993F; float maxValueX = arg1 + arg2 * exp(arg3 * mEyeDistFactor); - float maxValueZ = maxValueX * 0.4; + float maxValueZ = maxValueX * 0.4F; mEyeX += x; if (mEyeX > maxValueX) {