tiffdec: correct format string

the expression using dircount will be promoted to int when tdir_t is an
unsigned short.
quiets:
warning: format specifies type 'unsigned short' but the argument has
      type 'int' [-Wformat]

Change-Id: If2e8c27454826556178b0a972aaed272d5fbfa07
This commit is contained in:
James Zern 2013-01-07 19:06:20 -08:00
parent 2b9048e324
commit b50f277bc7

View File

@ -36,7 +36,7 @@ int ReadTIFF(const char* const filename,
dircount = TIFFNumberOfDirectories(tif);
if (dircount > 1) {
fprintf(stderr, "Warning: multi-directory TIFF files are not supported.\n"
"Only the first will be used, %hu will be ignored.\n",
"Only the first will be used, %d will be ignored.\n",
dircount - 1);
}