From 57a7f14e92307959f6c05eaa55da4fb0c8f7b5aa Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 5 May 2023 19:51:47 +0200 Subject: Silence compiler warning on 32bit systems --- src/plist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plist.c b/src/plist.c index e58e83a..e0cb86a 100644 --- a/src/plist.c +++ b/src/plist.c @@ -277,7 +277,7 @@ PLIST_API plist_err_t plist_read_from_file(const char *filename, plist_t *plist, } struct stat fst; fstat(fileno(f), &fst); - if (fst.st_size > UINT32_MAX) { + if ((uint64_t)fst.st_size > UINT32_MAX) { return PLIST_ERR_NO_MEM; } uint32_t total = (uint32_t)fst.st_size; -- cgit v1.1-32-gdbae