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.
This commit is contained in:
Tamás Bálint Misius 2023-06-10 19:52:49 +02:00
parent c73fa1bcdd
commit ced60439ae
No account linked to committer's email address

View File

@ -52,7 +52,7 @@ namespace http
return; return;
} }
auto &info = versions[key]; auto &info = versions[key];
auto getOr = [&info](ByteString key, int defaultValue) { auto getOr = [&info](ByteString key, int defaultValue) -> int {
if (!info.isMember(key)) if (!info.isMember(key))
{ {
return defaultValue; return defaultValue;
@ -75,18 +75,18 @@ namespace http
}; };
if constexpr (SNAPSHOT || MOD) if constexpr (SNAPSHOT || MOD)
{ {
parseUpdate("Snapshot", UpdateInfo::channelSnapshot, [](int build) { parseUpdate("Snapshot", UpdateInfo::channelSnapshot, [](int build) -> bool {
return build > SNAPSHOT_ID; return build > SNAPSHOT_ID;
}); });
} }
else else
{ {
parseUpdate("Stable", UpdateInfo::channelStable, [](int build) { parseUpdate("Stable", UpdateInfo::channelStable, [](int build) -> bool {
return build > BUILD_NUM; return build > BUILD_NUM;
}); });
if (!startupInfo.updateInfo.has_value()) if (!startupInfo.updateInfo.has_value())
{ {
parseUpdate("Beta", UpdateInfo::channelBeta, [](int build) { parseUpdate("Beta", UpdateInfo::channelBeta, [](int build) -> bool {
return build > BUILD_NUM; return build > BUILD_NUM;
}); });
} }