From 0fc73164eba34b4e64848ba75efcc293b3515212 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 7 Sep 2013 12:52:52 -0700 Subject: [PATCH] Fix warnings. --- format.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/format.cc b/format.cc index 1bf20b18..53f7c414 100644 --- a/format.cc +++ b/format.cc @@ -419,7 +419,7 @@ void fmt::BasicFormatter::DoFormat() { typedef internal::Array::INLINE_BUFFER_SIZE> Buffer; BasicWriter &writer = *writer_; while (*s) { - char c = *s++; + Char c = *s++; if (c != '{' && c != '}') continue; if (*s == c) { writer.buffer_.append(start, s); @@ -439,7 +439,7 @@ void fmt::BasicFormatter::DoFormat() { ++s; // Parse fill and alignment. - if (char c = *s) { + if (Char c = *s) { const Char *p = s + 1; spec.align_ = ALIGN_DEFAULT; do { @@ -561,7 +561,7 @@ void fmt::BasicFormatter::DoFormat() { // Parse type. if (*s != '}' && *s) - spec.type_ = *s++; + spec.type_ = static_cast(*s++); } if (*s++ != '}')