/* Check the count field of a directory entry against a known value. The caller is expected to skip/ignore the tag if there is a mismatch.  */
static int CheckDirCount(TIFF *, TIFFDirEntry *, uint32)
/* Check the count field of a directory entry against a known value. The caller is expected to skip/ignore the tag if there is a mismatch.  */
static int CheckDirCount(TIFF *, TIFFDirEntry *, uint32)
{
	if (count != dir->tdir_count) {
		TIFFWarning(tif->tif_name,
	"incorrect count for field \"%s\" (%lu, expecting %lu); tag ignored",
		    _TIFFFieldWithTag(tif, dir->tdir_tag)->field_name,
		    dir->tdir_count, count);
		return (0);
	}
	return (1);
}