From 2d7dc922c66338b4dc6654fcd9ba6ecb2d09b914 Mon Sep 17 00:00:00 2001 From: Ruriwo <32032670+kanren3@users.noreply.github.com> Date: Sat, 7 Feb 2026 01:37:08 +0800 Subject: [PATCH] Suppress warning C4305 (#4668) --- include/fmt/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 72115cf9..cd9a794f 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -1743,7 +1743,7 @@ template class buffer { // Don't initialize ptr_ since it is not accessed to save a few cycles. FMT_CONSTEXPR buffer(grow_fun grow, size_t sz) noexcept : size_(sz), capacity_(sz), grow_(grow) { - if (FMT_MSC_VERSION) ptr_ = nullptr; // Suppress warning 26495. + if (FMT_MSC_VERSION != 0) ptr_ = nullptr; // Suppress warning 26495. } constexpr buffer(grow_fun grow, T* p = nullptr, size_t sz = 0,