Skip to content

Commit cf8c7bc

Browse files
committed
Fix off_t ambiguity
1 parent f8046cd commit cf8c7bc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ else()
5252
function(import_zsync2)
5353
FetchContent_Declare(zsync2
5454
GIT_REPOSITORY https://github.com/AppImageCommunity/zsync2
55-
GIT_TAG 2.0.0-alpha-1-20250925
55+
GIT_TAG 2.0.0-alpha-1-20250926
5656
)
5757
FetchContent_MakeAvailable(zsync2)
5858
endfunction()

include/appimage/update.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ namespace appimage::update {
106106
static std::string signatureValidationMessage(const ValidationState& state);
107107

108108
// Returns the size of the remote file in bytes
109-
bool remoteFileSize(off_t& fileSize) const;
109+
bool remoteFileSize(long long& fileSize) const;
110110

111111
// Return update information
112112
// If no custom update information is set, the function returns the raw update information contained in the

src/cli/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ int main(const int argc, const char** argv) {
211211
if (!updater.progress(progress))
212212
return 1;
213213

214-
off_t fileSize = 0;
214+
long long fileSize = 0;
215215
if (!updater.remoteFileSize(fileSize))
216216
fileSize = -1;
217217

src/updater/updater.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ namespace appimage::update {
376376
return false;
377377
}
378378

379-
bool Updater::remoteFileSize(off_t& fileSize) const {
379+
bool Updater::remoteFileSize(long long& fileSize) const {
380380
// only available update method is via ZSync
381381
if (d->zSyncClient != nullptr)
382382
return d->zSyncClient->remoteFileSize(fileSize);

0 commit comments

Comments
 (0)