diff --git a/libtiff/tif_print.c b/libtiff/tif_print.c index 5e254964..904f94e5 100644 --- a/libtiff/tif_print.c +++ b/libtiff/tif_print.c @@ -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 @@ -72,7 +72,8 @@ TIFFPrintDirectory(TIFF* tif, FILE* fd, long flags) uint16 i; 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; if (TIFFFieldSet(tif,FIELD_SUBFILETYPE)) { fprintf(fd, " Subfile Type:"); @@ -586,7 +587,7 @@ _TIFFprintAscii(FILE* fd, const char* cp) for (; *cp != '\0'; cp++) { const char* tp; - if (isprint(*cp)) { + if (isprint((int)*cp)) { fputc(*cp, fd); continue; }