From 2bb8120d9826df5aa7830de042f5be9e8b48f569 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 11 Aug 2019 09:27:59 -0700 Subject: [PATCH] Fix a warning --- test/compile-test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/compile-test.cc b/test/compile-test.cc index 535ca339..0643b63b 100644 --- a/test/compile-test.cc +++ b/test/compile-test.cc @@ -486,11 +486,11 @@ TEST(PrepareTest, PassCompileString) { TEST(PrepareTest, FormatToArrayOfChars) { char buffer[32] = {0}; const auto prepared = fmt::compile("4{}"); - fmt::format_to(buffer, prepared, 2); + fmt::format_to(fmt::internal::make_checked(buffer, 32), prepared, 2); EXPECT_EQ(std::string("42"), buffer); wchar_t wbuffer[32] = {0}; const auto wprepared = fmt::compile(L"4{}"); - fmt::format_to(wbuffer, wprepared, 2); + fmt::format_to(fmt::internal::make_checked(wbuffer, 32), wprepared, 2); EXPECT_EQ(std::wstring(L"42"), wbuffer); }