Skip to content

Commit

Permalink
Bugfix for fmt::printf on Power9 architecture with the XL compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyweiss committed Dec 31, 2022
1 parent a73a9b6 commit 7dd990e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -3583,6 +3583,10 @@ template <typename Char> struct arg_formatter {
const format_specs<Char>& specs;
locale_ref locale;

arg_formatter(buffer_appender<Char> it, const format_specs<Char>& s,
locale_ref l)
: out{it}, specs{s}, locale{l} {}

template <typename T>
FMT_CONSTEXPR FMT_INLINE auto operator()(T value) -> iterator {
return detail::write(out, value, specs, locale);
Expand Down

0 comments on commit 7dd990e

Please sign in to comment.