1
0
mirror of https://github.com/simh/simh.git synced 2026-02-27 01:00:07 +00:00

FIO: Avoid compiler warning on never executed code path (Tony Nicholson)

As suggested in #766
This commit is contained in:
Mark Pizzolato
2019-11-14 03:08:57 -08:00
parent 43b011883e
commit 23856afcac

View File

@@ -821,7 +821,7 @@ if (strchr (parts, 't') || strchr (parts, 'z')) {
memset (&filestat, 0, sizeof (filestat));
(void)stat (fullpath, &filestat);
if (sizeof (filestat.st_size) == 4)
sprintf (filesizebuf, "%ld ", filestat.st_size);
sprintf (filesizebuf, "%ld ", (long)filestat.st_size);
else
sprintf (filesizebuf, "%" LL_FMT "d ", (LL_TYPE)filestat.st_size);
tm = localtime (&filestat.st_mtime);