mirror of
https://github.com/open-simh/simh.git
synced 2026-04-27 20:48:20 +00:00
IBM1130: Add necessary parenthesis to conditional expression (Coverity)
This commit is contained in:
@@ -533,7 +533,8 @@ static t_stat dsk_attach (UNIT *uptr, CONST char *cptr)
|
|||||||
return rval;
|
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_ready(TRUE);
|
||||||
disk_unlocked(FALSE);
|
disk_unlocked(FALSE);
|
||||||
}
|
}
|
||||||
@@ -562,7 +563,8 @@ static t_stat dsk_detach (UNIT *uptr)
|
|||||||
uptr->FUNC = DSK_FUNC_IDLE;
|
uptr->FUNC = DSK_FUNC_IDLE;
|
||||||
dsk_dsw[drv] = DSK_DSW_NOT_READY;
|
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_unlocked(TRUE);
|
||||||
disk_ready(FALSE);
|
disk_ready(FALSE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user