Fix a MSVC warning

This commit is contained in:
vitaut 2016-03-04 06:44:12 -08:00
parent fc505b5447
commit 5324d385c0

View File

@ -366,8 +366,8 @@ class CharConverter : public fmt::internal::ArgVisitor<CharConverter, void> {
// 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<std::streamsize>::Type UnsignedStreamSize;
UnsignedStreamSize size = w.size();
UnsignedStreamSize max_size =
internal::to_unsigned((std::numeric_limits<std::streamsize>::max)());
do {