From caf885d91cddcc25c05321e94190f76f9fe10edc Mon Sep 17 00:00:00 2001 From: Syping Date: Fri, 5 Apr 2024 04:22:43 +0200 Subject: [PATCH] RagePhoto.c: fix off_t type in ragephoto_loadfile --- src/core/RagePhoto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/RagePhoto.c b/src/core/RagePhoto.c index 52fa099..e7f005c 100644 --- a/src/core/RagePhoto.c +++ b/src/core/RagePhoto.c @@ -626,7 +626,7 @@ bool ragephoto_loadfile(ragephoto_t instance_t, const char *filename) #if defined(_WIN64) const long long fileSize = _ftelli64(file); #elif (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) - const _off_t fileSize = ftello(file); + const off_t fileSize = ftello(file); #else const long fileSize = ftell(file); #endif