From 5324d385c065e1e7130d589c17b845eeb5e8c709 Mon Sep 17 00:00:00 2001 From: vitaut Date: Fri, 4 Mar 2016 06:44:12 -0800 Subject: [PATCH] Fix a MSVC warning --- cppformat/format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cppformat/format.cc b/cppformat/format.cc index f30d5f2d..92ffde8d 100644 --- a/cppformat/format.cc +++ b/cppformat/format.cc @@ -366,8 +366,8 @@ class CharConverter : public fmt::internal::ArgVisitor { // Write the content of w to os. void write(std::ostream &os, fmt::MemoryWriter &w) { const char *data = w.data(); - std::size_t size = w.size(); typedef internal::MakeUnsigned::Type UnsignedStreamSize; + UnsignedStreamSize size = w.size(); UnsignedStreamSize max_size = internal::to_unsigned((std::numeric_limits::max)()); do {