aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-10-04 18:01:55 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1993-10-04 18:01:55 -0400
commiteecaa29b353d0a5ae60c8fc47320404d18bc0d25 (patch)
tree6b3ac794569669bfc265a29ab4bb22a4bcdbd991 /gcc
parent6bd6178de9f5e72b20377514a4af6e4164a5bcca (diff)
downloadgcc-eecaa29b353d0a5ae60c8fc47320404d18bc0d25.zip
gcc-eecaa29b353d0a5ae60c8fc47320404d18bc0d25.tar.gz
gcc-eecaa29b353d0a5ae60c8fc47320404d18bc0d25.tar.bz2
(bc_emit_bytecode): Cast enum array indices to int.
From-SVN: r5593
Diffstat (limited to 'gcc')
-rw-r--r--gcc/bc-emit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/bc-emit.c b/gcc/bc-emit.c
index 5071cf4..b5d038c 100644
--- a/gcc/bc-emit.c
+++ b/gcc/bc-emit.c
@@ -866,7 +866,7 @@ bc_emit_bytecode (bytecode)
enum bytecode_opcode bytecode;
{
char byte;
- int npushes = arityvec[bytecode].noutputs - arityvec[bytecode].ninputs;
+ int npushes = arityvec[(int) bytecode].noutputs - arityvec[(int) bytecode].ninputs;
static int prev_lineno = -1;
byte = bytecode;
@@ -889,9 +889,9 @@ bc_emit_bytecode (bytecode)
bc_emit_bytecode_const (&byte, 1);
- if ((stack_depth -= arityvec[bytecode].ninputs) >= 0)
+ if ((stack_depth -= arityvec[(int) bytecode].ninputs) >= 0)
{
- if ((stack_depth += arityvec[bytecode].noutputs) > max_stack_depth)
+ if ((stack_depth += arityvec[(int) bytecode].noutputs) > max_stack_depth)
max_stack_depth = stack_depth;
}