warning fix
authorMatthias Braun <matze@braunis.de>
Wed, 6 Sep 2006 16:09:22 +0000 (16:09 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 6 Sep 2006 16:09:22 +0000 (16:09 +0000)
[r8191]

ir/tv/strcalc.c

index 4d07dd4..d30e2ee 100644 (file)
@@ -975,7 +975,7 @@ void sign_extend(char *calc_buffer, ir_mode *mode) {
 
       for (i = ofs + 1; i < calc_buffer_size; ++i)
         calc_buffer[i] = SC_F;
-      calc_buffer[ofs] = or_table[calc_buffer[ofs]][sex_digit[bits & 3]];
+      calc_buffer[ofs] = or_table[(int) calc_buffer[ofs]][(int) sex_digit[bits & 3]];
     }
   }
 }