diff --git a/rtengine/improcfun.cc b/rtengine/improcfun.cc index fb8093de9..3c8b0d430 100644 --- a/rtengine/improcfun.cc +++ b/rtengine/improcfun.cc @@ -5376,7 +5376,7 @@ void ImProcFunctions::getAutoExp (const LUTu &histogram, int histcompr, double histogram.getSumAndAverage (sum, ave); //find median of luminance - int median = 0, count = histogram[0]; + size_t median = 0, count = histogram[0]; while (count < sum / 2) { median++;