diff --git a/libtiff/tif_print.c b/libtiff/tif_print.c index 5d812ea7..2ec77579 100644 --- a/libtiff/tif_print.c +++ b/libtiff/tif_print.c @@ -1,4 +1,4 @@ -/* $Id: tif_print.c,v 1.22 2005-03-21 10:17:37 dron Exp $ */ +/* $Id: tif_print.c,v 1.23 2005-04-08 09:50:55 dron Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -549,7 +549,7 @@ TIFFPrintDirectory(TIFF* tif, FILE* fd, long flags) fprintf(fd, "%d", (int)((short *) raw_data)[j]); else if(fip->field_type == TIFF_LONG) fprintf(fd, "%lu", - (int)((unsigned long *) raw_data)[j]); + (unsigned long)((unsigned long *) raw_data)[j]); else if(fip->field_type == TIFF_SLONG) fprintf(fd, "%ld", (long)((long *) raw_data)[j]); else if(fip->field_type == TIFF_RATIONAL