From 25df8ccd96abd86d8d7c741a807aca2455a41338 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 25 Jan 2026 17:47:40 -0800 Subject: [PATCH] Fix usage of memset --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index d99ac594..8c143cfe 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -564,7 +564,7 @@ FMT_CONSTEXPR20 auto fill_n(T* out, Size count, char value) -> T* { if (is_constant_evaluated()) return fill_n(out, count, value); static_assert(sizeof(T) == 1, "sizeof(T) must be 1 to use char for initialization"); - std::memset(out, value, to_unsigned(count)); + memset(out, value, to_unsigned(count)); return out + count; }