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:
parent
f05abdee3c
commit
115cd493b5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue