forked from fmtlib/fmt
Fix Klockwork compilation warning
(cherry picked from commit 05ba3e7888
)
This commit is contained in:
committed by
Jonathan Müller
parent
48ba0f2aa2
commit
abee8f95ec
@ -997,7 +997,8 @@ inline void format_decimal(Char *buffer, UInt value, unsigned num_digits,
|
||||
|
||||
template <typename UInt, typename Char>
|
||||
inline void format_decimal(Char *buffer, UInt value, unsigned num_digits) {
|
||||
return format_decimal(buffer, value, num_digits, NoThousandsSep());
|
||||
format_decimal(buffer, value, num_digits, NoThousandsSep());
|
||||
return;
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
@ -1901,8 +1902,10 @@ class ArgFormatterBase : public ArgVisitor<Impl, void> {
|
||||
void visit_any_double(T value) { writer_.write_double(value, spec_); }
|
||||
|
||||
void visit_bool(bool value) {
|
||||
if (spec_.type_)
|
||||
return visit_any_int(value);
|
||||
if (spec_.type_) {
|
||||
visit_any_int(value);
|
||||
return;
|
||||
}
|
||||
write(value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user