diff --git a/UI/update/win-update.cpp b/UI/update/win-update.cpp index 313238769..9fcc3e4b8 100644 --- a/UI/update/win-update.cpp +++ b/UI/update/win-update.cpp @@ -57,8 +57,9 @@ try { constexpr uint64_t currentVersion = (uint64_t)LIBOBS_API_VER << 16ULL | OBS_RELEASE_CANDIDATE << 8ULL | OBS_BETA; - constexpr bool isPreRelease = currentVersion & 0xffff || - strlen(OBS_COMMIT); + constexpr bool isPreRelease = + currentVersion & 0xffff || + std::char_traits::length(OBS_COMMIT); json manifestContents = json::parse(manifest_data); Manifest manifest = manifestContents.get();