Avoid warnings.

This commit is contained in:
Andrey Kiselev 2004-09-21 12:36:02 +00:00
parent 77e3c70670
commit 2ed2911af2
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;