@@ -72,7 +72,7 @@ DngDecoder::DngDecoder(TiffRootIFDOwner&& rootIFD, Buffer file)
7272 mRootIFD ->getEntryRecursive (TiffTag::DNGVERSION)->getData ().getBuffer (4 );
7373
7474 if (v[0 ] != 1 ) {
75- ThrowRDE (" Not a supported DNG image format: v%u.%u.%u.%u " ,
75+ ThrowRDE (" Not a supported DNG image format: v%i.%i.%i.%i " ,
7676 static_cast <int >(v[0 ]), static_cast <int >(v[1 ]),
7777 static_cast <int >(v[2 ]), static_cast <int >(v[3 ]));
7878 }
@@ -159,7 +159,7 @@ Optional<iRectangle2D> DngDecoder::parseACTIVEAREA(const TiffIFD* raw) const {
159159
160160 const TiffEntry* active_area = raw->getEntry (TiffTag::ACTIVEAREA);
161161 if (active_area->count != 4 )
162- ThrowRDE (" active area has %d values instead of 4" , active_area->count );
162+ ThrowRDE (" active area has %u values instead of 4" , active_area->count );
163163
164164 const iRectangle2D fullImage (0 , 0 , mRaw ->dim .x , mRaw ->dim .y );
165165
@@ -172,7 +172,7 @@ Optional<iRectangle2D> DngDecoder::parseACTIVEAREA(const TiffIFD* raw) const {
172172 if (!(fullImage.isPointInsideInclusive (topLeft) &&
173173 fullImage.isPointInsideInclusive (bottomRight) &&
174174 bottomRight >= topLeft)) {
175- ThrowRDE (" Rectangle (%u , %u , %u , %u ) not inside image (%u , %u , %u , %u )." ,
175+ ThrowRDE (" Rectangle (%i , %i , %i , %i ) not inside image (%i , %i , %i , %i )." ,
176176 topLeft.x , topLeft.y , bottomRight.x , bottomRight.y ,
177177 fullImage.getTopLeft ().x , fullImage.getTopLeft ().y ,
178178 fullImage.getBottomRight ().x , fullImage.getBottomRight ().y );
@@ -229,7 +229,7 @@ void DngDecoder::parseCFA(const TiffIFD* raw) const {
229229 iPoint2D cfaSize (cfadim->getU32 (1 ), cfadim->getU32 (0 ));
230230 if (!cfaSize.hasPositiveArea () || cfaSize.area () != cPat->count ) {
231231 ThrowRDE (" CFA pattern dimension and pattern count does not "
232- " match: %d ." ,
232+ " match: %u ." ,
233233 cPat->count );
234234 }
235235
@@ -351,7 +351,7 @@ DngDecoder::getTilingDescription(const TiffIFD* raw) const {
351351
352352 if (yPerSlice == 0 ||
353353 roundUpDivisionSafe (mRaw ->dim .y , yPerSlice) != counts->count ) {
354- ThrowRDE (" Invalid y per slice %u or strip count %u (height = %u )" ,
354+ ThrowRDE (" Invalid y per slice %u or strip count %u (height = %i )" ,
355355 yPerSlice, counts->count , mRaw ->dim .y );
356356 }
357357
@@ -465,7 +465,7 @@ RawImage DngDecoder::decodeRawInternal() {
465465
466466 bps = raw->getEntry (TiffTag::BITSPERSAMPLE)->getU32 ();
467467 if (*bps < 1 || *bps > 32 )
468- ThrowRDE (" Unsupported bit per sample count: %u ." , *bps);
468+ ThrowRDE (" Unsupported bit per sample count: %i ." , *bps);
469469
470470 uint32_t sample_format = 1 ;
471471 if (raw->hasEntry (TiffTag::SAMPLEFORMAT))
0 commit comments