From f595e889b91a674eb94db7ca4d832da54f5194cd Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 17 Aug 2017 15:01:09 +0200 Subject: Use int64_t for public file API offsets. Don't mess with conditional compilation with LARGEFILE -- always expose 64-bit file offsets in our public API. --- source/fitz/unzip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/fitz/unzip.c') diff --git a/source/fitz/unzip.c b/source/fitz/unzip.c index 0bcce0fd..c5798fa8 100644 --- a/source/fitz/unzip.c +++ b/source/fitz/unzip.c @@ -230,7 +230,7 @@ static void ensure_zip_entries(fz_context *ctx, fz_zip_archive *zip) size_t size, back, maxback; size_t i, n; - fz_seek(ctx, file, 0, FZ_SEEK_END); + fz_seek(ctx, file, 0, SEEK_END); size = fz_tell(ctx, file); maxback = fz_minz(size, 0xFFFF + sizeof buf); @@ -238,7 +238,7 @@ static void ensure_zip_entries(fz_context *ctx, fz_zip_archive *zip) while (back < maxback) { - fz_seek(ctx, file, (fz_off_t)(size - back), 0); + fz_seek(ctx, file, (int64_t)(size - back), 0); n = fz_read(ctx, file, buf, sizeof buf); if (n < 4) break; -- cgit v1.2.3