1
0
mirror of https://github.com/simh/simh.git synced 2026-01-31 13:53:10 +00:00

DISK, TAPE: Remove compiler and Coverity warnings

This commit is contained in:
Mark Pizzolato
2019-11-24 10:55:25 -08:00
parent 6df860ea1a
commit 519ef27def
2 changed files with 4 additions and 2 deletions

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];