From dab0ead924a2a54583b49aa07591e76d07645ada Mon Sep 17 00:00:00 2001 From: hai007 Date: Fri, 13 Jan 2023 14:10:47 -0800 Subject: [PATCH] Explicitly initialize atomic value; change its type to unsigned. PiperOrigin-RevId: 501935970 --- .../platform/implementation/windows/generated/winrt/base.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/platform/implementation/windows/generated/winrt/base.h b/internal/platform/implementation/windows/generated/winrt/base.h index 0e4468f1..ebc74f70 100644 --- a/internal/platform/implementation/windows/generated/winrt/base.h +++ b/internal/platform/implementation/windows/generated/winrt/base.h @@ -2739,8 +2739,7 @@ namespace winrt::impl } private: - - std::atomic m_count; + std::atomic m_count{0}; }; constexpr uint32_t hstring_reference_flag{ 1 };