diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-02 09:14:24 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-02 09:14:24 (GMT) |
commit | 6e2c143aaf5862d51974d9ab8efc5051d91d60ef (patch) | |
tree | 48705c29768eeb95ee1ffd27dbf4958b11753578 | |
parent | 67776e855333b6656a9981890da44c044eb20ad7 (diff) | |
download | tk-6e2c143aaf5862d51974d9ab8efc5051d91d60ef.zip tk-6e2c143aaf5862d51974d9ab8efc5051d91d60ef.tar.gz tk-6e2c143aaf5862d51974d9ab8efc5051d91d60ef.tar.bz2 |
gcc warning: signed-unsigned compare
-rw-r--r-- | xlib/xcolors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlib/xcolors.c b/xlib/xcolors.c index 7a83146..04cb1af 100644 --- a/xlib/xcolors.c +++ b/xlib/xcolors.c @@ -17,7 +17,7 @@ * Index array. For each of the characters 'a'-'y', this table gives the first color * starting with that character in the xColors table. */ -static int az[] = {0, 4, 12, 19, 43, 43, 46, 56, 58, 60, 60, 61, 84, 99, +static unsigned char az[] = {0, 4, 12, 19, 43, 43, 46, 56, 58, 60, 60, 61, 84, 99, 102, 107, 118, 118, 121, 134, 138, 138, 140, 143, 143, 145}; /* @@ -351,7 +351,7 @@ XParseColor( * p = pointer to current element being considered. */ int r = (spec[0] - 'A') & 0xdf; - if (r > (sizeof(az)/sizeof(az[0] - 1))) { + if (r >= (int) sizeof(az) - 1) { return 0; } size = az[r + 1] - az[r]; |