1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +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

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