Fix clang build (fixes #4303)

This commit is contained in:
Flössie
2018-01-14 10:32:48 +01:00
parent 8c62e817c5
commit b762804b80

View File

@@ -105,7 +105,10 @@ void ImProcFunctions::Lanczos (const Imagefloat* src, Imagefloat* dst, float sca
float y0 = (static_cast<float> (i) + 0.5f) * delta - 0.5f;
// weights for interpolation in y direction
float w[support] = {};
float w[support];
for (auto& f : w) {
f = 0.f;
}
// sum of weights used for normalization
float ws = 0.0f;