1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-04-06 05:32:27 +00:00

SCP: Updated to current.

This commit is contained in:
Richard Cornwell
2019-12-01 23:33:06 -05:00
parent b2cfeaa3ce
commit 24226358b0
2 changed files with 4 additions and 2 deletions

View File

@@ -1123,7 +1123,7 @@ t_seccnt sects_read;
if ((dptr = find_dev_from_unit (uptr)) == NULL)
return ret_val;
saved_capac = uptr->capac;
uptr->capac = temp_capac;
uptr->capac = (t_addr)temp_capac;
if ((sim_disk_rdsect (uptr, 512 / ctx->sector_size, (uint8 *)&Home, &sects_read, sizeof (Home) / ctx->sector_size)) ||
(sects_read != (sizeof (Home) / ctx->sector_size)))
goto Return_Cleanup;

View File

@@ -3274,9 +3274,11 @@ tape_size = (t_addr)sim_fsize (uptr->fileref);
sim_debug_unit (MTSE_DBG_STR, uptr, "tpc_map: tape_size: %" T_ADDR_FMT "u\n", tape_size);
for (objc = 0, sizec = 0, tpos = 0;; ) {
(void)sim_tape_seek (uptr, tpos);
i = sim_fread (&bc, sizeof (t_tpclnt), 1, uptr->fileref);
i = sim_fread (&bc, sizeof (bc), 1, uptr->fileref);
if (i == 0) /* past or at eof? */
break;
if (bc > 65535) /* Range check length value to satisfy Coverity */
break;
if (countmap[bc] == 0)
sizec++;
++countmap[bc];