diff --git a/fmt/format.h b/fmt/format.h index 56ff5ff2..1a1049aa 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -1000,7 +1000,8 @@ inline void format_decimal(Char *buffer, UInt value, unsigned num_digits, template 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 @@ -1949,7 +1950,10 @@ class ArgFormatterBase : public ArgVisitor { void visit_bool(bool value) { if (spec_.type_) - return visit_any_int(value); + { + visit_any_int(value); + return; + } write(value); }