Commit 75d28b05957c4b12e9834a5cf7d804ee65d8c6b0
1 parent
eba01623
char is only for strings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4436 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
3 deletions
target-i386/helper.c
... | ... | @@ -1238,14 +1238,14 @@ void do_interrupt(int intno, int is_int, int error_code, |
1238 | 1238 | */ |
1239 | 1239 | static int check_exception(int intno, int *error_code) |
1240 | 1240 | { |
1241 | - char first_contributory = env->old_exception == 0 || | |
1241 | + int first_contributory = env->old_exception == 0 || | |
1242 | 1242 | (env->old_exception >= 10 && |
1243 | 1243 | env->old_exception <= 13); |
1244 | - char second_contributory = intno == 0 || | |
1244 | + int second_contributory = intno == 0 || | |
1245 | 1245 | (intno >= 10 && intno <= 13); |
1246 | 1246 | |
1247 | 1247 | if (loglevel & CPU_LOG_INT) |
1248 | - fprintf(logfile, "check_exception old: %x new %x\n", | |
1248 | + fprintf(logfile, "check_exception old: 0x%x new 0x%x\n", | |
1249 | 1249 | env->old_exception, intno); |
1250 | 1250 | |
1251 | 1251 | if (env->old_exception == EXCP08_DBLE) | ... | ... |