1
0
mirror of https://github.com/open-simh/simh.git synced 2026-05-03 22:58:53 +00:00

SCP: Cleanup potential compiler warnings

This commit is contained in:
Mark Pizzolato
2021-08-13 09:09:53 -07:00
parent 502ebeafc3
commit f95b20e1f3
7 changed files with 23 additions and 23 deletions

View File

@@ -724,7 +724,7 @@ else {
struct stat statb;
if ((fstat ((*shmem)->shm_fd, &statb)) ||
(statb.st_size != (*shmem)->shm_size)) {
((size_t)statb.st_size != (*shmem)->shm_size)) {
sim_shmem_close (*shmem);
*shmem = NULL;
return sim_messagef (SCPE_OPENERR, "Shared Memory segment '%s' is %d bytes instead of %d\n", name, (int)(statb.st_size), (int)size);