diff options
| author | Josh Ferrell <josh@vector35.com> | 2024-08-21 11:55:52 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2024-08-21 11:55:52 -0400 |
| commit | ab4b7edfa94b4025345f4f1100a47f53b77b0aee (patch) | |
| tree | 04ee29db4d3361e1c76246d9014951d5c9083701 /update.cpp | |
| parent | 7a0ab6ffa99533bc241c88b8761fb82d795dc832 (diff) | |
Fix progress function types in update.cpp
Diffstat (limited to 'update.cpp')
| -rw-r--r-- | update.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -85,12 +85,12 @@ bool UpdateChannel::AreUpdatesAvailable(uint64_t* expireTime, uint64_t* serverTi BNUpdateResult UpdateChannel::UpdateToVersion(const string& version) { - return UpdateToVersion(version, [](uint64_t, uint64_t) { return true; }); + return UpdateToVersion(version, [](size_t, size_t) { return true; }); } BNUpdateResult UpdateChannel::UpdateToVersion( - const string& version, const function<bool(uint64_t progress, uint64_t total)>& progress) + const string& version, const function<bool(size_t progress, size_t total)>& progress) { UpdateProgress up; up.func = progress; @@ -112,11 +112,11 @@ BNUpdateResult UpdateChannel::UpdateToVersion( BNUpdateResult UpdateChannel::UpdateToLatestVersion() { - return UpdateToLatestVersion([](uint64_t, uint64_t) { return true; }); + return UpdateToLatestVersion([](size_t, size_t) { return true; }); } -BNUpdateResult UpdateChannel::UpdateToLatestVersion(const function<bool(uint64_t progress, uint64_t total)>& progress) +BNUpdateResult UpdateChannel::UpdateToLatestVersion(const function<bool(size_t progress, size_t total)>& progress) { UpdateProgress up; up.func = progress; |
