From: Richard Kenner Date: Mon, 4 Oct 1993 22:01:55 +0000 (-0400) Subject: (bc_emit_bytecode): Cast enum array indices to int. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eecaa29b353d0a5ae60c8fc47320404d18bc0d25;p=gcc.git (bc_emit_bytecode): Cast enum array indices to int. From-SVN: r5593 --- 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; }