diff options
author | John David Anglin <dave@hiauly1.hia.nrc.ca> | 2001-03-02 01:11:50 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2001-03-02 01:11:50 +0000 |
commit | 37b8524ce81b644bb78238c3e14327a0eaae1a5b (patch) | |
tree | da9ac0ba27ed4ebd50b3f9958d9ae1f81ef897f5 /gcc/cppexp.c | |
parent | f71434274cd0439bde0dbdfd1fc53e2f24dee485 (diff) | |
download | gcc-37b8524ce81b644bb78238c3e14327a0eaae1a5b.tar.gz |
cpplib.c (_cpp_init_stacks): Cast enum for comparison.
* 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.
From-SVN: r40174
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; |