Avoid warnings.

This commit is contained in:
Andrey Kiselev 2004-09-21 10:18:22 +00:00
parent 90c8a73696
commit 5c33b43916

View File

@ -1,4 +1,4 @@
/* $Id: tif_print.c,v 1.16 2004-09-14 06:58:04 dron Exp $ */ /* $Id: tif_print.c,v 1.17 2004-09-21 10:18:22 dron Exp $ */
/* /*
* Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1988-1997 Sam Leffler
@ -72,7 +72,8 @@ TIFFPrintDirectory(TIFF* tif, FILE* fd, long flags)
uint16 i; uint16 i;
long l, n; long l, n;
fprintf(fd, "TIFF Directory at offset 0x%lx\n", tif->tif_diroff); fprintf(fd, "TIFF Directory at offset 0x%lx\n",
(unsigned int)tif->tif_diroff);
td = &tif->tif_dir; td = &tif->tif_dir;
if (TIFFFieldSet(tif,FIELD_SUBFILETYPE)) { if (TIFFFieldSet(tif,FIELD_SUBFILETYPE)) {
fprintf(fd, " Subfile Type:"); fprintf(fd, " Subfile Type:");
@ -586,7 +587,7 @@ _TIFFprintAscii(FILE* fd, const char* cp)
for (; *cp != '\0'; cp++) { for (; *cp != '\0'; cp++) {
const char* tp; const char* tp;
if (isprint(*cp)) { if (isprint((int)*cp)) {
fputc(*cp, fd); fputc(*cp, fd);
continue; continue;
} }