1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-25 19:57:36 +00:00

I1401: Fixed MTF length checking (COVERITY)

This commit is contained in:
Bob Supnik
2017-03-20 07:43:41 -07:00
committed by Mark Pizzolato
parent 0e6a79f078
commit a040eb4e32
2 changed files with 26 additions and 20 deletions

View File

@@ -919,8 +919,8 @@ switch (I_GETOP (MB)) { /* case on <1:6> */
t2 = GETDBL_S (SEXT (AR), BR); /* get A'B */
t3 = t2 << t1; /* "arith" left */
PUTDBL_S (t3); /* store A'B */
if ((t2 >> (31 - t1)) != /* shf out = sgn? */
((AR & SIGN)? -1: 0)) C = 1;
if ((t2 >> (31 - t1)) != ((AR & SIGN)? -1: 0)) /* shf out = sgn? */
C = 1;
break;
case 012: /* LLR */