diff --git a/AK/Format.cpp b/AK/Format.cpp index 6d558f72fa0..0f52a50dde9 100644 --- a/AK/Format.cpp +++ b/AK/Format.cpp @@ -651,7 +651,7 @@ void StandardFormatter::parse(TypeErasedFormatParams& params, FormatParser& pars else if (parser.consume_specific('p')) m_mode = Mode::Pointer; else if (parser.consume_specific('f')) - m_mode = Mode::Float; + m_mode = Mode::FixedPoint; else if (parser.consume_specific('a')) m_mode = Mode::Hexfloat; else if (parser.consume_specific('A')) @@ -794,7 +794,7 @@ ErrorOr Formatter::format(FormatBuilder& builder, long double { u8 base; bool upper_case; - if (m_mode == Mode::Default || m_mode == Mode::Float) { + if (m_mode == Mode::Default || m_mode == Mode::FixedPoint) { base = 10; upper_case = false; } else if (m_mode == Mode::Hexfloat) { @@ -817,7 +817,7 @@ ErrorOr Formatter::format(FormatBuilder& builder, double value) { u8 base; bool upper_case; - if (m_mode == Mode::Default || m_mode == Mode::Float) { + if (m_mode == Mode::Default || m_mode == Mode::FixedPoint) { base = 10; upper_case = false; } else if (m_mode == Mode::Hexfloat) { diff --git a/AK/Format.h b/AK/Format.h index 9b460818149..6dfc1437cd7 100644 --- a/AK/Format.h +++ b/AK/Format.h @@ -292,7 +292,7 @@ struct StandardFormatter { Character, String, Pointer, - Float, + FixedPoint, Hexfloat, HexfloatUppercase, HexDump, @@ -520,7 +520,7 @@ struct Formatter> : StandardFormatter { { u8 base; bool upper_case; - if (m_mode == Mode::Default || m_mode == Mode::Float) { + if (m_mode == Mode::Default || m_mode == Mode::FixedPoint) { base = 10; upper_case = false; } else if (m_mode == Mode::Hexfloat) {