From ee7446ab860fea9483e9d912555a8e5d50838b51 Mon Sep 17 00:00:00 2001 From: Andrey Kiselev Date: Mon, 20 Mar 2006 15:29:53 +0000 Subject: [PATCH] Avoid warnings. --- tools/tiff2pdf.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/tiff2pdf.c b/tools/tiff2pdf.c index 270b9eef..8fa4af97 100644 --- a/tools/tiff2pdf.c +++ b/tools/tiff2pdf.c @@ -1,4 +1,4 @@ -/* $Id: tiff2pdf.c,v 1.28 2006-02-26 17:55:42 dron Exp $ +/* $Id: tiff2pdf.c,v 1.29 2006-03-20 15:29:53 dron Exp $ * * tiff2pdf - converts a TIFF image to a PDF document * @@ -1765,7 +1765,7 @@ void t2p_read_tiff_size(T2P* t2p, TIFF* input){ tstrip_t stripcount=0; #endif #ifdef OJPEG_SUPPORT - uint32 k=0; + tsize_t k = 0; #endif if(t2p->pdf_transcode == T2P_TRANSCODE_RAW){ @@ -3049,7 +3049,7 @@ int t2p_process_ojpeg_tables(T2P* t2p, TIFF* input){ t2p->t2p_error = T2P_ERR_ERROR; return(0); } - if(q_length < (64 * t2p->tiff_samplesperpixel)){ + if(q_length < (64U * t2p->tiff_samplesperpixel)){ TIFFError(TIFF2PDF_MODULE, "Bad JPEGQTables field in OJPEG image %s", TIFFFileName(input)); @@ -3228,9 +3228,9 @@ int t2p_process_ojpeg_tables(T2P* t2p, TIFF* input){ ojpegdata[t2p->pdf_ojpegdatalength++]= i & 0xff; if(proc==JPEGPROC_BASELINE){ ojpegdata[t2p->pdf_ojpegdatalength] |= - ( ( (i>(table_count-1)) ? (table_count-1) : i) << 4) & 0xf0; + ( ( (i>(table_count-1U)) ? (table_count-1U) : i) << 4U) & 0xf0; ojpegdata[t2p->pdf_ojpegdatalength++] |= - ( (i>(table_count-1)) ? (table_count-1) : i) & 0x0f; + ( (i>(table_count-1U)) ? (table_count-1U) : i) & 0x0f; } else { ojpegdata[t2p->pdf_ojpegdatalength++] = (i << 4) & 0xf0; }