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.
This commit is contained in:
Ali Mohammad Pur 2023-10-31 11:31:17 +03:30
parent 141f56accc
commit bec1c1fff7
Notes: sideshowbarker 2024-07-17 05:13:53 +09:00

View file

@ -1065,6 +1065,9 @@ ErrorOr<void> Formatter<float>::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<void> FormatBuilder::put_f32_or_f64<float>(float, u8, bool, bool, bool, Align, size_t, Optional<size_t>, char, SignMode, RealNumberDisplayMode);
template ErrorOr<void> FormatBuilder::put_f32_or_f64<double>(double, u8, bool, bool, bool, Align, size_t, Optional<size_t>, char, SignMode, RealNumberDisplayMode);
#endif
#ifndef KERNEL