winedbg: Avoid TRUE:FALSE conditional expressions.
This commit is contained in:
parent
eeed445f44
commit
915e12e59f
|
@ -869,7 +869,7 @@ void be_arm_disasm_one_insn(ADDRESS64 *addr, int display)
|
|||
if (!memory_get_register(CV_ARM_CPSR, &pval, tmp, sizeof(tmp)))
|
||||
dbg_printf("\n\tmemory_get_register failed: %s", tmp);
|
||||
else
|
||||
db_disasm_thumb=(*pval & 0x20)?TRUE:FALSE;
|
||||
db_disasm_thumb = (*pval & 0x20) != 0;
|
||||
|
||||
db_display = display;
|
||||
|
||||
|
|
|
@ -549,7 +549,7 @@ void break_enable_xpoint(int num, BOOL enable)
|
|||
dbg_printf("Invalid breakpoint number %d\n", num);
|
||||
return;
|
||||
}
|
||||
dbg_curr_process->bp[num].enabled = (enable) ? TRUE : FALSE;
|
||||
dbg_curr_process->bp[num].enabled = enable != 0;
|
||||
dbg_curr_process->bp[num].skipcount = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue