summaryrefslogtreecommitdiff
path: root/update.cpp
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2024-08-21 11:55:52 -0400
committerJosh Ferrell <josh@vector35.com>2024-08-21 11:55:52 -0400
commitab4b7edfa94b4025345f4f1100a47f53b77b0aee (patch)
tree04ee29db4d3361e1c76246d9014951d5c9083701 /update.cpp
parent7a0ab6ffa99533bc241c88b8761fb82d795dc832 (diff)
Fix progress function types in update.cpp
Diffstat (limited to 'update.cpp')
-rw-r--r--update.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/update.cpp b/update.cpp
index 2233ed13..affd9a99 100644
--- a/update.cpp
+++ b/update.cpp
@@ -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;