From ced60439ae9d4323a0d5fbece58c820fe8dd794e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sat, 10 Jun 2023 19:52:49 +0200 Subject: [PATCH] Fix mingw builds My local mingw handled the previous commit fine, it's just the ghactions 8.1.0 one that didn't. We should update to windows-2022 which brings 11.2.0. --- src/client/http/StartupRequest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/http/StartupRequest.cpp b/src/client/http/StartupRequest.cpp index 113636c63..c3c036b88 100644 --- a/src/client/http/StartupRequest.cpp +++ b/src/client/http/StartupRequest.cpp @@ -52,7 +52,7 @@ namespace http return; } auto &info = versions[key]; - auto getOr = [&info](ByteString key, int defaultValue) { + auto getOr = [&info](ByteString key, int defaultValue) -> int { if (!info.isMember(key)) { return defaultValue; @@ -75,18 +75,18 @@ namespace http }; if constexpr (SNAPSHOT || MOD) { - parseUpdate("Snapshot", UpdateInfo::channelSnapshot, [](int build) { + parseUpdate("Snapshot", UpdateInfo::channelSnapshot, [](int build) -> bool { return build > SNAPSHOT_ID; }); } else { - parseUpdate("Stable", UpdateInfo::channelStable, [](int build) { + parseUpdate("Stable", UpdateInfo::channelStable, [](int build) -> bool { return build > BUILD_NUM; }); if (!startupInfo.updateInfo.has_value()) { - parseUpdate("Beta", UpdateInfo::channelBeta, [](int build) { + parseUpdate("Beta", UpdateInfo::channelBeta, [](int build) -> bool { return build > BUILD_NUM; }); }