From fe0035ffbbd2fc28f7b56098f0a9286c995b2f00 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Fri, 6 Nov 1992 21:04:59 +0000 Subject: [PATCH] (init_libfuncs): Add casts when comparing/incrementing enum. From-SVN: r2708 --- gcc/optabs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/optabs.c b/gcc/optabs.c index 57da821a0ee..7d79231eefc 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -3747,7 +3747,8 @@ init_libfuncs (optable, first_mode, last_mode, opname, suffix) register enum machine_mode mode; register unsigned opname_len = strlen (opname); - for (mode = first_mode; mode <= last_mode; mode++) + for (mode = first_mode; (int) mode <= (int) last_mode; + mode = (enum machine_mode) ((int) mode + 1)) { register char *mname = mode_name[(int) mode]; register unsigned mname_len = strlen (mname);