mirror of
https://github.com/simh/simh.git
synced 2026-02-26 16:54:22 +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;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user