diff --git a/tools/ppm2tiff.c b/tools/ppm2tiff.c index 10ca13d8..4de58950 100644 --- a/tools/ppm2tiff.c +++ b/tools/ppm2tiff.c @@ -1,4 +1,4 @@ -/* $Id: ppm2tiff.c,v 1.7 2004-09-02 14:51:04 dron Exp $ */ +/* $Id: ppm2tiff.c,v 1.8 2004-09-21 12:36:02 dron Exp $ */ /* * Copyright (c) 1991-1997 Sam Leffler @@ -223,7 +223,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; diff --git a/tools/ras2tiff.c b/tools/ras2tiff.c index ce884589..0b8831b4 100644 --- a/tools/ras2tiff.c +++ b/tools/ras2tiff.c @@ -1,4 +1,4 @@ -/* $Id: ras2tiff.c,v 1.10 2004-09-03 07:53:29 dron Exp $ */ +/* $Id: ras2tiff.c,v 1.11 2004-09-21 12:37:53 dron Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -236,7 +236,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;