diff options
author | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-02 01:11:50 +0000 |
---|---|---|
committer | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-02 01:11:50 +0000 |
commit | ee6c4e4b27bfcd3a4de817cf3d37c8c4ef72770a (patch) | |
tree | da9ac0ba27ed4ebd50b3f9958d9ae1f81ef897f5 /gcc/cppexp.c | |
parent | a45495831fc0a10be05ced025adc81e8224a608e (diff) | |
download | gcc-ee6c4e4b27bfcd3a4de817cf3d37c8c4ef72770a.tar.gz |
* cpplib.c (_cpp_init_stacks): Cast enum for comparison.
* cppexp.c (lex): Cast enums for comparison.
* cppinit.c (parse_option): Cast enum for comparison.
* cpplex.c (cpp_spell_token): Cast enums to int for minus.
(cpp_output_token): Likewise.
(cpp_can_paste): Cast enums for comparsion and plus/minus.
(cpp_avoid_paste): Cast enums for minus and comparison.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40174 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r-- | gcc/cppexp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 6aa6d4b4dc3..6ce693e48cc 100644 --- a/gcc/cppexp.c +++ b/gcc/cppexp.c @@ -477,7 +477,8 @@ lex (pfile, skip_evaluation, token) /* Fall through. */ default: - if ((token->type > CPP_EQ && token->type < CPP_PLUS_EQ) + if (((int) token->type > (int) CPP_EQ + && (int) token->type < (int) CPP_PLUS_EQ) || token->type == CPP_EOF) { op.op = token->type; |