Fix warnings.

This commit is contained in:
Victor Zverovich 2013-09-07 12:52:52 -07:00
parent 99c5f8e00b
commit 0fc73164eb

View File

@ -419,7 +419,7 @@ void fmt::BasicFormatter<Char>::DoFormat() {
typedef internal::Array<Char, BasicWriter<Char>::INLINE_BUFFER_SIZE> Buffer; typedef internal::Array<Char, BasicWriter<Char>::INLINE_BUFFER_SIZE> Buffer;
BasicWriter<Char> &writer = *writer_; BasicWriter<Char> &writer = *writer_;
while (*s) { while (*s) {
char c = *s++; Char c = *s++;
if (c != '{' && c != '}') continue; if (c != '{' && c != '}') continue;
if (*s == c) { if (*s == c) {
writer.buffer_.append(start, s); writer.buffer_.append(start, s);
@ -439,7 +439,7 @@ void fmt::BasicFormatter<Char>::DoFormat() {
++s; ++s;
// Parse fill and alignment. // Parse fill and alignment.
if (char c = *s) { if (Char c = *s) {
const Char *p = s + 1; const Char *p = s + 1;
spec.align_ = ALIGN_DEFAULT; spec.align_ = ALIGN_DEFAULT;
do { do {
@ -561,7 +561,7 @@ void fmt::BasicFormatter<Char>::DoFormat() {
// Parse type. // Parse type.
if (*s != '}' && *s) if (*s != '}' && *s)
spec.type_ = *s++; spec.type_ = static_cast<char>(*s++);
} }
if (*s++ != '}') if (*s++ != '}')