more double promote fixes, still not complete

This commit is contained in:
Ingo Weyrich
2020-01-21 14:01:27 +01:00
parent b2443b0e7e
commit 806c086fbc
4 changed files with 134 additions and 134 deletions

View File

@@ -496,7 +496,7 @@ void RawImageSource::HLRecovery_inpaint(float** red, float** green, float** blue
&& blue[i + miny][j + minx] < max_f[2]
) {
// if one or more channels is highlight but none are blown, add to highlight accumulator
hipass_sum += channelblur[0][i][j];
hipass_sum += static_cast<double>(channelblur[0][i][j]);
++hipass_norm;
hilite_full[0][i][j] = red[i + miny][j + minx];
@@ -507,7 +507,7 @@ void RawImageSource::HLRecovery_inpaint(float** red, float** green, float** blue
}
}
const float hipass_ave = 2.f * hipass_sum / (hipass_norm + epsilon);
const float hipass_ave = 2.0 * hipass_sum / (hipass_norm + static_cast<double>(epsilon));
if (plistener) {
progress += 0.05;