PDP11: Only compute vector ibit when it will be used (Coverity)
This commit is contained in:
parent
b6201898ee
commit
d03f1b67a2
1 changed files with 2 additions and 2 deletions
|
@ -325,8 +325,8 @@ if (dibp->vnum > VEC_DEVMAX)
|
||||||
return SCPE_IERR;
|
return SCPE_IERR;
|
||||||
vec = dibp->vec;
|
vec = dibp->vec;
|
||||||
ilvl = dibp->vloc / 32;
|
ilvl = dibp->vloc / 32;
|
||||||
ibit = dibp->vloc % 32;
|
|
||||||
#if (VEC_SET != 0)
|
#if (VEC_SET != 0)
|
||||||
|
ibit = dibp->vloc % 32;
|
||||||
if (vec)
|
if (vec)
|
||||||
vec |= (int_vec_set[ilvl][ibit] & ~3);
|
vec |= (int_vec_set[ilvl][ibit] & ~3);
|
||||||
#endif
|
#endif
|
||||||
|
@ -347,8 +347,8 @@ if (vec && !(sim_switches & SWMASK ('P'))) {
|
||||||
}
|
}
|
||||||
cdvec = cdibp->vec;
|
cdvec = cdibp->vec;
|
||||||
ilvl = cdibp->vloc / 32;
|
ilvl = cdibp->vloc / 32;
|
||||||
ibit = cdibp->vloc % 32;
|
|
||||||
#if (VEC_SET != 0)
|
#if (VEC_SET != 0)
|
||||||
|
ibit = cdibp->vloc % 32;
|
||||||
if (cdvec)
|
if (cdvec)
|
||||||
cdvec |= (int_vec_set[ilvl][ibit] & ~3);
|
cdvec |= (int_vec_set[ilvl][ibit] & ~3);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue