1
0
mirror of https://github.com/simh/simh.git synced 2026-05-05 07:23:34 +00:00

Compiler warning cleanup

This commit is contained in:
Mark Pizzolato
2012-12-13 15:21:07 -08:00
parent 59afee3128
commit c71e0c39dc
12 changed files with 18 additions and 20 deletions

View File

@@ -1159,7 +1159,7 @@ if ((mc != 0) && !get_yn ("Really truncate memory [N]?", FALSE))
nM = (uint16 *) calloc (val >> 1, sizeof (uint16));
if (nM == NULL)
return SCPE_MEM;
clim = (((t_addr) val) < MEMSIZE)? val: MEMSIZE;
clim = (((t_addr) val) < MEMSIZE)? (uint32)val: MEMSIZE;
for (i = 0; i < clim; i = i + 2)
nM[i >> 1] = M[i >> 1];
free (M);