Skip to content

Commit

Permalink
Suppress GCC warnings found by -Wall
Browse files Browse the repository at this point in the history
  • Loading branch information
syoyo committed Jun 23, 2024
1 parent d283cd3 commit 9d4eff1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tiny_dng_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -4123,7 +4123,7 @@ static bool ParseTIFFIFD(const StreamReader& sr,

return false;
}
size_t readLen = len * sizeof(float);
//size_t readLen = len * sizeof(float);

const size_t kMaxSamples = 1024 * 1024;

Expand Down Expand Up @@ -4196,7 +4196,7 @@ static bool ParseTIFFIFD(const StreamReader& sr,
}
}

if (len != (image.samples_per_pixel * 2)) {
if (size_t(len) != (size_t(image.samples_per_pixel) * 2)) {
if (err) {
(*err) += "Counts in NoisProfile must be 2 * SamplesPerPixel.\n";
}
Expand Down Expand Up @@ -5931,7 +5931,7 @@ bool LoadDNGFromMemory(const char* mem, unsigned int size,
}
return false;
}
TINY_DNG_DPRINTF("image.data.size = %lld\n", len);
TINY_DNG_DPRINTF("image.data.size = %u\n", uint32_t(len));

image->data.resize(len);
TINY_DNG_DPRINTF("image.data.size = %d\n", int(len));
Expand Down

0 comments on commit 9d4eff1

Please # to comment.