Browse Source

minor adaption: index array with int, not long

ceriel 37 years ago
parent
commit
9bcd5473ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util/opt/peephole.c

+ 1 - 1
util/opt/peephole.c

@@ -405,7 +405,7 @@ eval_t compute(pexp) register expr_p pexp; {
 			    leaf2.e_v.e_con < 0 ||
 			    leaf2.e_v.e_con >= MAXROM)
 				return(undefres);
-			res.e_v.e_con = sp->s_rom[leaf2.e_v.e_con];
+			res.e_v.e_con = sp->s_rom[(int)(leaf2.e_v.e_con)];
 			break;
 		} else
 			return(undefres);