From ab4b7edfa94b4025345f4f1100a47f53b77b0aee Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Wed, 21 Aug 2024 11:55:52 -0400 Subject: Fix progress function types in update.cpp --- update.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'update.cpp') 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& progress) + const string& version, const function& 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& progress) +BNUpdateResult UpdateChannel::UpdateToLatestVersion(const function& progress) { UpdateProgress up; up.func = progress; -- cgit v1.3.1