Fix all warnings in imageio.cc

This commit is contained in:
heckflosse
2017-03-31 13:36:17 +02:00
parent 01943c1ec7
commit 21b1a34c24

View File

@@ -1245,7 +1245,7 @@ int ImageIO::saveTIFF (Glib::ustring fname, int bps, bool uncompressed)
// The maximum lenght is strangely not the same than for the JPEG file... // The maximum lenght is strangely not the same than for the JPEG file...
// Which maximum length is the good one ? // Which maximum length is the good one ?
if (size > 0 && size <= bufferSize) { if (size > 0 && size <= static_cast<int>(bufferSize)) {
fwrite (buffer, size, 1, file); fwrite (buffer, size, 1, file);
} }