Commit 7f8281c3 authored by Roman Lebedev's avatar Roman Lebedev

Clahe iop: process(): fix gcc7 build.

[ 91%] Building C object src/iop/CMakeFiles/clahe.dir/introspection_clahe.c.o
In file included from /home/lebedevri/darktable/build-gcc7/src/iop/introspection_clahe.c:2:0:
/home/lebedevri/darktable/src/iop/clahe.c: In function 'process._omp_fn.1':
/home/lebedevri/darktable/src/iop/clahe.c:200:7: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]
       for(int b = 0; b < hMin; b++)
parent 8827726a
......@@ -196,7 +196,7 @@ void process(struct dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, const
} while(ce != ceb);
/* build cdf of clipped histogram */
int hMin = BINS;
unsigned int hMin = BINS;
for(int b = 0; b < hMin; b++)
if(clippedhist[b] != 0) hMin = b;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment