Fix compiler warnings

This commit is contained in:
Lawrence Lee
2024-02-08 22:08:44 -08:00
parent b19fc23cb4
commit 6d2022b5d5
2 changed files with 2 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ void adjustBlackLevels(float cblack[4], rtengine::eSensorType sensorType, const
break;
}
for (int i = 0; i < black_adjust.size(); i++) {
for (unsigned int i = 0; i < black_adjust.size(); i++) {
cblack[i] = std::max(0.f, cblack[i] + black_adjust[i]);
}
}
@@ -118,7 +118,7 @@ void calculate_scale_mul(float scale_mul[4], const float pre_mul_[4], const floa
{
std::array<float, 4> c_white;
for (int i = 0; i < c_white.size(); ++i) {
for (unsigned int i = 0; i < c_white.size(); ++i) {
c_white[i] = static_cast<float>(ri->get_white(i));
}