1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-01-14 07:39:04 +00:00

KA10: Cleanup compile warnings and coverity errors.

This commit is contained in:
Richard Cornwell 2019-07-05 00:37:50 -04:00
parent aeeecb6bbd
commit 8b4ebfe1fe
4 changed files with 6 additions and 7 deletions

View File

@ -2160,7 +2160,7 @@ pmp_format(UNIT * uptr, int flag) {
int sector;
int rec;
int hd;
int pos;
uint32 pos;
if (flag || get_yn("Initialize dasd? [Y] ", TRUE)) {
memset(&hdr, 0, sizeof(struct pmp_header));
@ -2181,7 +2181,7 @@ pmp_format(UNIT * uptr, int flag) {
for (cyl = 0; cyl <= disk_type[type].cyl; cyl++) {
pos = 0;
for (hd = 0; hd < disk_type[type].heads; hd++) {
int cpos = pos;
uint32 cpos = pos;
rec = 0;
data->cbuf[pos++] = 0; /* HA */
data->cbuf[pos++] = (cyl >> 8);

View File

@ -4635,9 +4635,7 @@ left:
break;
case 0243: /* JFFO */
#if PDP6
break;
#endif
#if !PDP6
SC = 0;
if (AR != 0) {
#if ITS
@ -4650,6 +4648,7 @@ left:
SC = nlzero(AR);
}
set_reg(AC + 1, SC);
#endif
break;
case 0244: /* ASHC */

View File

@ -484,7 +484,7 @@ int auxcpu_write (int addr, t_uint64);
extern t_bool sim_idle_enab;
extern struct rh_dev rh[];
extern t_uint64 M[];
extern t_uint64 M[MAXMEMSIZE];
extern t_uint64 FM[];
extern uint32 PC;
extern uint32 FLAGS;

View File

@ -385,7 +385,7 @@ t_stat load_sblk (FILE *fileref)
and then comes the data. Last is a checksum word. */
while (get_evac (fileref, &word) == 0 && (word & SMASK)) {
check = word;
count = -((word >> 18) | (-1 << 18));
count = (int)((((word >> 18) ^ RMASK) + 1) & RMASK);
addr = word & RMASK;
while (count-- > 0) {
if (get_evac (fileref, &word))