From 37b8524ce81b644bb78238c3e14327a0eaae1a5b Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Fri, 2 Mar 2001 01:11:50 +0000 Subject: 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 --- gcc/cppexp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/cppexp.c') 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; -- cgit v1.2.1