mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
Fix warnings.
This commit is contained in:
parent
99c5f8e00b
commit
0fc73164eb
@ -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++ != '}')
|
||||||
|
Loading…
Reference in New Issue
Block a user