From 43386676467029fa7aa392bcc96b31b01f8d3912 Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Wed, 12 Jul 2000 13:00:27 +0000 Subject: [PATCH] Fixed 16/32 bit problem. Fix c/o Peter Skarpetis, peters@serendipity-software.com.au --- libtiff/tif_fax3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libtiff/tif_fax3.c b/libtiff/tif_fax3.c index c12cf3ab..dbaf0b75 100644 --- a/libtiff/tif_fax3.c +++ b/libtiff/tif_fax3.c @@ -1,4 +1,4 @@ -/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_fax3.c,v 1.9 2000-03-17 20:33:44 warmerda Exp $ */ +/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_fax3.c,v 1.10 2000-07-12 13:00:27 warmerda Exp $ */ /* * Copyright (c) 1990-1997 Sam Leffler @@ -171,7 +171,7 @@ Fax3PreDecode(TIFF* tif, tsample_t s) sp->bitmap = TIFFGetBitRevTable(tif->tif_dir.td_fillorder != FILLORDER_LSB2MSB); if (sp->refruns) { /* init reference line to white */ - sp->refruns[0] = (uint16) sp->b.rowpixels; + sp->refruns[0] = (uint32) sp->b.rowpixels; sp->refruns[1] = 0; } return (1); @@ -374,7 +374,7 @@ _TIFFFax3fillruns(u_char* buf, uint32* runs, uint32* erun, uint32 lastx) for (; runs < erun; runs += 2) { run = runs[0]; if (x+run > lastx || run > lastx ) - run = runs[0] = (uint16) (lastx - x); + run = runs[0] = (uint32) (lastx - x); if (run) { cp = buf + (x>>3); bx = x&7;