IBM1130: Add necessary parenthesis to conditional expression (Coverity)
This commit is contained in:
parent
a750171c30
commit
197bca5fdd
1 changed files with 4 additions and 2 deletions
|
@ -533,7 +533,8 @@ static t_stat dsk_attach (UNIT *uptr, CONST char *cptr)
|
|||
return rval;
|
||||
}
|
||||
|
||||
if ((boot_drive>=0) && (dsk_unit[boot_drive].flags&UNIT_ATT)) {
|
||||
if ((boot_drive >= 0) &&
|
||||
(dsk_unit[boot_drive].flags & UNIT_ATT)) {
|
||||
disk_ready(TRUE);
|
||||
disk_unlocked(FALSE);
|
||||
}
|
||||
|
@ -562,7 +563,8 @@ static t_stat dsk_detach (UNIT *uptr)
|
|||
uptr->FUNC = DSK_FUNC_IDLE;
|
||||
dsk_dsw[drv] = DSK_DSW_NOT_READY;
|
||||
|
||||
if ((boot_drive>=0) && (!dsk_unit[boot_drive].flags&UNIT_ATT)) {
|
||||
if ((boot_drive >= 0) &&
|
||||
(!(dsk_unit[boot_drive].flags & UNIT_ATT))) {
|
||||
disk_unlocked(TRUE);
|
||||
disk_ready(FALSE);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue