From c2f02df2f5d553c153632b15a498e64f70fa6648 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 25 Sep 2014 07:38:16 -0700 Subject: [PATCH] Fix warning in clang --- test/format-impl-test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/format-impl-test.cc b/test/format-impl-test.cc index 07bda1c3..c2121a7c 100644 --- a/test/format-impl-test.cc +++ b/test/format-impl-test.cc @@ -106,6 +106,7 @@ TEST(FormatTest, FormatErrorCode) { fmt::internal::INLINE_BUFFER_SIZE - msg.size() - sep.size(), 'x'); format_error_code(w, 42, prefix); EXPECT_EQ(prefix + sep + msg, w.str()); - EXPECT_EQ(fmt::internal::INLINE_BUFFER_SIZE, w.size()); + std::size_t size = fmt::internal::INLINE_BUFFER_SIZE; + EXPECT_EQ(size, w.size()); } }