Skip to content

Commit

Permalink
Fix Klockwork compilation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhayat authored and vitaut committed Nov 6, 2016
1 parent 1daddec commit 05ba3e7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,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
Expand Down Expand Up @@ -1948,8 +1949,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);
}

Expand Down

0 comments on commit 05ba3e7

Please sign in to comment.