1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 04:01:38 +00:00

SCP: Fixed "noise" bugs (COVERITY)

This commit is contained in:
Bob Supnik
2017-03-20 21:55:10 -07:00
committed by Mark Pizzolato
parent c6399f7e40
commit 5ca66f59fe
2 changed files with 13 additions and 7 deletions

View File

@@ -205,7 +205,8 @@ t_stat r;
if ((cptr == NULL) || (*cptr == 0))
return SCPE_2FARG;
if (dptr->dradix == 16) rdx = 16;
if (dptr->dradix == 16)
rdx = 16;
else rdx = 8;
val = (int32) get_uint (cptr, rdx, 0177, &r);
if ((r != SCPE_OK) ||
@@ -526,7 +527,7 @@ if (md != TTUF_MODE_8B) {
c |= ((~((nibble_even_parity >> ((c & 0xF) + 1)) ^ (nibble_even_parity >> (((c >> 4) & 0xF) + 1)))) & 0x80);
break;
case TTUF_PAR_MARK:
c = c | 0x80;
c = c | 0200;
break;
}
}