Fix compiler warnings

This commit is contained in:
Lawrence Lee 2024-02-08 22:08:44 -08:00
parent b19fc23cb4
commit 6d2022b5d5
No known key found for this signature in database
GPG Key ID: 048FF2B76A63895F
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));
}

View File

@ -287,7 +287,6 @@ private:
int kmin = 20;
float minhist = 1000000000.f;
float maxhist = -1000.f;
double tempitc = 5000.f;
double greenitc = 1.;
float temp0 = 5000.f;
bool extra = false;