From 8c657db1a6e0bb20e370f96dca6ffc8c64f8144e Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Sat, 26 Jul 2003 03:50:08 +0000 Subject: [PATCH] Avoid warning casting signed value to unsigned variable. Patch supplied by J.A. Strother. --- tools/tiffcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tiffcp.c b/tools/tiffcp.c index 72b23f63..a100b828 100644 --- a/tools/tiffcp.c +++ b/tools/tiffcp.c @@ -1,4 +1,4 @@ -/* $Header: /cvs/maptools/cvsroot/libtiff/tools/tiffcp.c,v 1.13 2003-06-10 06:15:36 dron Exp $ */ +/* $Header: /cvs/maptools/cvsroot/libtiff/tools/tiffcp.c,v 1.14 2003-07-26 03:50:08 warmerda Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -173,7 +173,7 @@ main(int argc, char* argv[]) exit (-2); } { - uint16 samples = -1; + uint16 samples = (uint16) -1; char **biasFn = &optarg; bias = openSrcImage (biasFn); if (!bias) exit (-5);