1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 20:12:23 +00:00

UC15: Fix incorrect shared region size

This commit is contained in:
Mark Pizzolato
2018-07-21 03:01:11 -07:00
parent beaae0b945
commit a2bc6a9508

View File

@@ -395,7 +395,7 @@ ucb_buf = 0;
CLR_INT (UCA);
CLR_INT (UCB);
if (uc15_shmem == NULL) { /* allocate shared state */
r = sim_shmem_open ("UC15SharedState", UC15_STATE_SIZE, &uc15_shmem, &basead);
r = sim_shmem_open ("UC15SharedState", UC15_STATE_SIZE * sizeof(int32), &uc15_shmem, &basead);
if (r != SCPE_OK)
return r;
uc15_shstate = (int32 *) basead;