diff options
Diffstat (limited to 'libtiff/tif_print.c')
-rw-r--r-- | libtiff/tif_print.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libtiff/tif_print.c b/libtiff/tif_print.c index 5bbbb061..6f126015 100644 --- a/libtiff/tif_print.c +++ b/libtiff/tif_print.c @@ -1,4 +1,4 @@ -/* $Header: /usr/people/sam/tiff/libtiff/RCS/tif_print.c,v 1.64 1995/07/19 00:39:31 sam Exp $ */ +/* $Header: /usr/people/sam/tiff/libtiff/RCS/tif_print.c,v 1.65 1995/10/10 00:12:55 sam Exp $ */ /* * Copyright (c) 1988-1995 Sam Leffler @@ -72,7 +72,7 @@ TIFFPrintDirectory(TIFF* tif, FILE* fd, long flags) uint16 i; long l, n; - fprintf(fd, "TIFF Directory at offset 0x%x\n", tif->tif_diroff); + fprintf(fd, "TIFF Directory at offset 0x%lx\n", (long) tif->tif_diroff); td = &tif->tif_dir; if (TIFFFieldSet(tif,FIELD_SUBFILETYPE)) { fprintf(fd, " Subfile Type:"); @@ -87,8 +87,8 @@ TIFFPrintDirectory(TIFF* tif, FILE* fd, long flags) } if (td->td_subfiletype & FILETYPE_MASK) fprintf(fd, "%stransparency mask", sep); - fprintf(fd, " (%u = 0x%x)\n", - td->td_subfiletype, td->td_subfiletype); + fprintf(fd, " (%lu = 0x%lx)\n", + (long) td->td_subfiletype, (long) td->td_subfiletype); } if (TIFFFieldSet(tif,FIELD_IMAGEDIMENSIONS)) { fprintf(fd, " Image Width: %lu Image Length: %lu", @@ -441,7 +441,7 @@ TIFFPrintDirectory(TIFF* tif, FILE* fd, long flags) if (TIFFFieldSet(tif, FIELD_SUBIFD)) { fprintf(fd, " SubIFD Offsets:"); for (i = 0; i < td->td_nsubifd; i++) - fprintf(fd, " %5u", td->td_subifd[i]); + fprintf(fd, " %5lu", (long) td->td_subifd[i]); fputc('\n', fd); } #endif @@ -451,8 +451,8 @@ TIFFPrintDirectory(TIFF* tif, FILE* fd, long flags) TIFFFieldSet(tif,FIELD_STRIPOFFSETS)) { tstrip_t s; - fprintf(fd, " %u %s:\n", - td->td_nstrips, + fprintf(fd, " %lu %s:\n", + (long) td->td_nstrips, isTiled(tif) ? "Tiles" : "Strips"); for (s = 0; s < td->td_nstrips; s++) fprintf(fd, " %3lu: [%8lu, %8lu]\n", |