1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-03-31 03:21:21 +00:00

KA10: Fixed coverity errors.

This commit is contained in:
Richard Cornwell
2017-06-11 22:12:22 -04:00
parent 3b05584b76
commit ae1e2af3f5

View File

@@ -4661,7 +4661,7 @@ if ((val <= 0) || ((val * 16 * 1024) > MAXMEMSIZE))
val = val * 16 * 1024;
if (val < MEMSIZE) {
uint64 mc = 0;
for (i = val; i < MEMSIZE; i++)
for (i = val-1; i < MEMSIZE; i++)
mc = mc | M[i];
if ((mc != 0) && (!get_yn ("Really truncate memory [N]?", FALSE)))
return SCPE_OK;