mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-01 14:49:33 +01:00
Fix some warnings (#1667)
* Fix sign-conversion warning * Add missing "extern template" declarations for non-header-only build * Use typed enums to fix Wsigned-enum-bitfield warnings * Consolidate FMT_HEADER_ONLY code
This commit is contained in:
@@ -507,7 +507,7 @@ OutputIt basic_printf_context<OutputIt, Char>::format() {
|
||||
auto str_end = str + specs.precision;
|
||||
auto nul = std::find(str, str_end, Char());
|
||||
arg = internal::make_arg<basic_printf_context>(basic_string_view<Char>(
|
||||
str, nul != str_end ? nul - str : specs.precision));
|
||||
str, internal::to_unsigned(nul != str_end ? nul - str : specs.precision)));
|
||||
}
|
||||
if (specs.alt && visit_format_arg(internal::is_zero_int(), arg))
|
||||
specs.alt = false;
|
||||
|
||||
Reference in New Issue
Block a user