dehaze: fix broken build on gcc < 9.x, #5456

This commit is contained in:
Ingo Weyrich
2019-09-19 22:06:41 +02:00
parent 3ab379ad0a
commit 3981e285b9

View File

@@ -162,7 +162,8 @@ float estimate_ambient_light(const array2D<float> &R, const array2D<float> &G, c
#ifdef _OPENMP
#pragma omp parallel for schedule(dynamic) reduction(+:rr,gg,bb,n)
#endif
for (const auto &p : patches) {
for (size_t i = 0; i < patches.size(); ++i) {
const auto &p = patches[i];
const int pW = min(p.first + patchsize, W);
const int pH = min(p.second + patchsize, H);