From eecaa29b353d0a5ae60c8fc47320404d18bc0d25 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 4 Oct 1993 18:01:55 -0400 Subject: [PATCH] (bc_emit_bytecode): Cast enum array indices to int. From-SVN: r5593 --- gcc/bc-emit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/bc-emit.c b/gcc/bc-emit.c index 5071cf4e940..b5d038c14e0 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; } -- 2.30.2