diff options
| author | 2023-05-05 19:51:47 +0200 | |
|---|---|---|
| committer | 2023-05-05 19:51:47 +0200 | |
| commit | 57a7f14e92307959f6c05eaa55da4fb0c8f7b5aa (patch) | |
| tree | f2fb38a2b6a5df22c942c18b244068e208e54f6e | |
| parent | 954b3e44b79396ee5352aa1c8ec1d883a4433e99 (diff) | |
| download | libplist-57a7f14e92307959f6c05eaa55da4fb0c8f7b5aa.tar.gz libplist-57a7f14e92307959f6c05eaa55da4fb0c8f7b5aa.tar.bz2 | |
Silence compiler warning on 32bit systems
| -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, | |||
| 277 | } | 277 | } |
| 278 | struct stat fst; | 278 | struct stat fst; |
| 279 | fstat(fileno(f), &fst); | 279 | fstat(fileno(f), &fst); |
| 280 | if (fst.st_size > UINT32_MAX) { | 280 | if ((uint64_t)fst.st_size > UINT32_MAX) { |
| 281 | return PLIST_ERR_NO_MEM; | 281 | return PLIST_ERR_NO_MEM; |
| 282 | } | 282 | } |
| 283 | uint32_t total = (uint32_t)fst.st_size; | 283 | uint32_t total = (uint32_t)fst.st_size; |
