From 8d676c54644b7213a926faa00fc793e0e23fad0b Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Fri, 10 Apr 2015 13:29:04 +0000 Subject: Use int64_t for the offset argument of libarchive function call. off_t and int64_t are different on 32-bit platforms. Fixes #18. -- MOS_MIGRATED_REVID=90802730 --- src/main/cpp/blaze.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/cpp') diff --git a/src/main/cpp/blaze.cc b/src/main/cpp/blaze.cc index 63671aaa4d..547a6a5683 100644 --- a/src/main/cpp/blaze.cc +++ b/src/main/cpp/blaze.cc @@ -798,7 +798,7 @@ static void ActuallyExtractData(const string &argv0, const void *buf; size_t size; - off_t offset; + int64_t offset; while (true) { retval = archive_read_data_block(blaze_zip, &buf, &size, &offset); if (retval == ARCHIVE_EOF) { -- cgit v1.2.3