diff --git a/tools/bmp2tiff.c b/tools/bmp2tiff.c index 0a76e454..70c38f73 100644 --- a/tools/bmp2tiff.c +++ b/tools/bmp2tiff.c @@ -1,4 +1,4 @@ -/* $Id: bmp2tiff.c,v 1.7 2004-09-03 07:59:54 dron Exp $ +/* $Id: bmp2tiff.c,v 1.8 2004-09-21 12:16:51 dron Exp $ * * Project: libtiff tools * Purpose: Convert Windows BMP files in TIFF. @@ -672,7 +672,7 @@ processCompressOptions(char* opt) compression = COMPRESSION_PACKBITS; else if (strncmp(opt, "jpeg", 4) == 0) { char* cp = strchr(opt, ':'); - if (cp && isdigit(cp[1])) + if (cp && isdigit((int)cp[1])) quality = atoi(cp+1); if (cp && strchr(cp, 'r')) jpegcolormode = JPEGCOLORMODE_RAW; diff --git a/tools/pal2rgb.c b/tools/pal2rgb.c index d0fefcb2..f672065c 100644 --- a/tools/pal2rgb.c +++ b/tools/pal2rgb.c @@ -1,4 +1,4 @@ -/* $Id: pal2rgb.c,v 1.7 2004-09-02 14:46:27 dron Exp $ */ +/* $Id: pal2rgb.c,v 1.8 2004-09-21 12:20:04 dron Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -231,7 +231,7 @@ processCompressOptions(char* opt) compression = COMPRESSION_PACKBITS; else if (strneq(opt, "jpeg", 4)) { char* cp = strchr(opt, ':'); - if (cp && isdigit(cp[1])) + if (cp && isdigit((int)cp[1])) quality = atoi(cp+1); if (cp && strchr(cp, 'r')) jpegcolormode = JPEGCOLORMODE_RAW;