23 lines
1.0 KiB
Diff
23 lines
1.0 KiB
Diff
diff --git a/include/fmt/format.h b/include/fmt/format.h
|
|
index 7637c8a0..c9d7b6cc 100644
|
|
--- a/include/fmt/format.h
|
|
+++ b/include/fmt/format.h
|
|
@@ -1332,7 +1332,7 @@ template <typename Char, typename UInt, typename Iterator,
|
|
FMT_CONSTEXPR inline auto format_decimal(Iterator out, UInt value, int size)
|
|
-> format_decimal_result<Iterator> {
|
|
// Buffer is large enough to hold all digits (digits10 + 1).
|
|
- Char buffer[digits10<UInt>() + 1] = {};
|
|
+ Char buffer[digits10<UInt>() + 1];
|
|
auto end = format_decimal(buffer, value, size).end;
|
|
return {out, detail::copy_str_noinline<Char>(buffer, end, out)};
|
|
}
|
|
@@ -1359,7 +1359,7 @@ FMT_CONSTEXPR inline auto format_uint(It out, UInt value, int num_digits,
|
|
return out;
|
|
}
|
|
// Buffer should be large enough to hold all digits (digits / BASE_BITS + 1).
|
|
- char buffer[num_bits<UInt>() / BASE_BITS + 1] = {};
|
|
+ char buffer[num_bits<UInt>() / BASE_BITS + 1];
|
|
format_uint<BASE_BITS>(buffer, value, num_digits, upper);
|
|
return detail::copy_str_noinline<Char>(buffer, buffer + num_digits, out);
|
|
}
|