libtiff: fix ppc build

This commit is contained in:
Jerome Duval
2012-09-03 19:01:20 +02:00
parent efe79d9878
commit 1d6d4b7872
+8 -9
View File
@@ -726,11 +726,10 @@ JPEGPreDecode(TIFF* tif, tsample_t s)
if (sp->cinfo.d.image_width < segment_width || if (sp->cinfo.d.image_width < segment_width ||
sp->cinfo.d.image_height < segment_height) { sp->cinfo.d.image_height < segment_height) {
TIFFWarningExt(tif->tif_clientdata, module, TIFFWarningExt(tif->tif_clientdata, module,
"Improper JPEG strip/tile size, " "Improper JPEG strip/tile size, "
"expected %dx%d, got %dx%d", "expected %" B_PRIu32 "x%" B_PRIu32 ", got %" B_PRIu32 "x%"
segment_width, segment_height, B_PRIu32, segment_width, segment_height, sp->cinfo.d.image_width,
sp->cinfo.d.image_width, sp->cinfo.d.image_height);
sp->cinfo.d.image_height);
} }
if (sp->cinfo.d.image_width > segment_width || if (sp->cinfo.d.image_width > segment_width ||
sp->cinfo.d.image_height > segment_height) { sp->cinfo.d.image_height > segment_height) {
@@ -741,10 +740,10 @@ JPEGPreDecode(TIFF* tif, tsample_t s)
* case and error out. * case and error out.
*/ */
TIFFErrorExt(tif->tif_clientdata, module, TIFFErrorExt(tif->tif_clientdata, module,
"JPEG strip/tile size exceeds expected dimensions," "JPEG strip/tile size exceeds expected dimensions,"
" expected %dx%d, got %dx%d", "expected %" B_PRIu32 "x%" B_PRIu32 ", got %" B_PRIu32 "x%"
segment_width, segment_height, B_PRIu32, segment_width, segment_height, sp->cinfo.d.image_width,
sp->cinfo.d.image_width, sp->cinfo.d.image_height); sp->cinfo.d.image_height);
return (0); return (0);
} }
if (sp->cinfo.d.num_components != if (sp->cinfo.d.num_components !=