diff --git a/src/util/format/formatter.cpp b/src/util/format/formatter.cpp index 78fc283..a44cbff 100644 --- a/src/util/format/formatter.cpp +++ b/src/util/format/formatter.cpp @@ -46,7 +46,7 @@ void Formatter::parse(Parser& parser) void Formatter::format(Builder& builder, const char* value) const { if (specifier.type == PresentationType::Pointer) { - Formatter formatter { specifier }; + Formatter formatter { .specifier = specifier }; formatter.format(builder, static_cast(value)); return; } diff --git a/src/util/format/formatter.h b/src/util/format/formatter.h index 20b2e10..da1fbe7 100644 --- a/src/util/format/formatter.h +++ b/src/util/format/formatter.h @@ -95,7 +95,7 @@ struct Formatter { if (specifier.type == PresentationType::Character) { assert(value >= 0 && value <= 127); - Formatter formatter { specifier }; + Formatter formatter { .specifier = specifier }; formatter.specifier.type = PresentationType::String; return formatter.format(builder, { reinterpret_cast(&value), 1 }); }