@ -1082,7 +1082,7 @@ namespace Exiv2 {
throw Error(kerImageWriteFailed);
// Write new Exif data buffer
if (outIo.write(pExifData, exifSize) != static_cast<long>(exifSize))
if (outIo.write(pExifData, static_cast<long>(exifSize)) != static_cast<long>(exifSize))
if (outIo.error())