Cleanup: replace C-style casts with functional casts for numeric types
This commit is contained in:
@@ -128,7 +128,7 @@ float RE_filter_value(int type, float x)
|
||||
case R_FILTER_FAST_GAUSS: {
|
||||
const float two_gaussfac2 = 2.0f * gaussfac * gaussfac;
|
||||
x *= 3.0f * gaussfac;
|
||||
return 1.0f / sqrtf((float)M_PI * two_gaussfac2) * expf(-x * x / two_gaussfac2);
|
||||
return 1.0f / sqrtf(float(M_PI) * two_gaussfac2) * expf(-x * x / two_gaussfac2);
|
||||
}
|
||||
|
||||
case R_FILTER_MITCH:
|
||||
|
||||
Reference in New Issue
Block a user