--- OLD/libtiff/tif_dirwrite.c Thu Jan 1 00:00:00 1970 +++ NEW/libtiff/tif_dirwrite.c Thu Jan 1 00:00:00 1970 @@ -782,7 +782,7 @@ if (tif->tif_flags & TIFF_SWAB) TIFFSwabLong(&nextdir); } while (nextdir != 0); - (void) TIFFSeekFile(tif, -sizeof (nextdir), L_INCR); + (void) TIFFSeekFile(tif, -(toff_t)sizeof (nextdir), L_INCR); if (!WriteOK(tif, &tif->tif_diroff, sizeof (tif->tif_diroff))) { TIFFError(module, "Error writing directory link"); return (0);