Do not compare to chars to >= 0 since this will cause a warning where

chars are unsigned.  instead, change it from ((c) < foo && (c) >= 0) to
((unsigned char)(c) < foo) which does the same thing but avoids the warning
This commit is contained in:
matt 2001-08-30 02:15:42 +00:00
parent f05abdee3c
commit 115cd493b5
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@
#define meta_character_bit 0x080 /* x0000000, must be on. */
#define largest_char 255 /* Largest character value. */
#define CTRL_CHAR(c) ((c) < control_character_threshold && (c) >= 0)
#define CTRL_CHAR(c) ((unsigned char)(c) < control_character_threshold)
#define META_CHAR(c) ((c) > meta_character_threshold && (c) <= largest_char)
#define CTRL(c) ((c) & control_character_mask)