From bec1c1fff7a2ade054a75fc78f8890901772f645 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Tue, 31 Oct 2023 11:31:17 +0330 Subject: [PATCH] AK: Explicitly instantiate FormatBuilder::put_f32_or_f64<{f32,f64}> The default visibility of this function's implicit instantiation was somehow different on macOS, this fixes that and doesn't affect anything else. --- AK/Format.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AK/Format.cpp b/AK/Format.cpp index ea42971656..553dd12d85 100644 --- a/AK/Format.cpp +++ b/AK/Format.cpp @@ -1065,6 +1065,9 @@ ErrorOr Formatter::format(FormatBuilder& builder, float value) return builder.put_f32_or_f64(value, base, upper_case, m_zero_pad, m_use_separator, m_align, m_width.value(), m_precision, m_fill, m_sign_mode, real_number_display_mode); } + +template ErrorOr FormatBuilder::put_f32_or_f64(float, u8, bool, bool, bool, Align, size_t, Optional, char, SignMode, RealNumberDisplayMode); +template ErrorOr FormatBuilder::put_f32_or_f64(double, u8, bool, bool, bool, Align, size_t, Optional, char, SignMode, RealNumberDisplayMode); #endif #ifndef KERNEL