diff options
author | Nikias Bassen | 2023-05-05 19:51:47 +0200 |
---|---|---|
committer | Nikias Bassen | 2023-05-05 19:51:47 +0200 |
commit | 57a7f14e92307959f6c05eaa55da4fb0c8f7b5aa (patch) | |
tree | f2fb38a2b6a5df22c942c18b244068e208e54f6e /src/plist.c | |
parent | 954b3e44b79396ee5352aa1c8ec1d883a4433e99 (diff) | |
download | libplist-57a7f14e92307959f6c05eaa55da4fb0c8f7b5aa.tar.gz libplist-57a7f14e92307959f6c05eaa55da4fb0c8f7b5aa.tar.bz2 |
Silence compiler warning on 32bit systems
Diffstat (limited to 'src/plist.c')
-rw-r--r-- | src/plist.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |