Fix the "fake" newer version number being actually older

This commit is contained in:
Tamás Bálint Misius 2024-12-18 19:26:57 +01:00
parent 7394a1c081
commit a01a075551
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -16,8 +16,10 @@
#include <cmath>
#include <algorithm>
constexpr auto currentVersion = UPSTREAM_VERSION.displayVersion;
constexpr auto nextVersion = Version(98, 0);
constexpr auto currentVersion = UPSTREAM_VERSION.displayVersion;
constexpr auto nextVersion = Version(99, 0);
static_assert(nextVersion >= currentVersion);
constexpr auto effectiveVersion = ALLOW_FAKE_NEWER_VERSION ? nextVersion : currentVersion;
static void ConvertJsonToBson(bson *b, Json::Value j, int depth = 0);