mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
Don't parse % unless FMT_DEPRECATED_PERCENT is set
This commit is contained in:
parent
57b6f2966d
commit
e9bff78814
@ -1288,12 +1288,12 @@ FMT_CONSTEXPR float_spec parse_float_type_spec(char spec,
|
||||
case 'f':
|
||||
result.format = float_format::fixed;
|
||||
break;
|
||||
case '%':
|
||||
#if FMT_DEPRECATED_PERCENT
|
||||
case '%':
|
||||
result.format = float_format::fixed;
|
||||
result.percent = true;
|
||||
#endif
|
||||
break;
|
||||
#endif
|
||||
case 'A':
|
||||
result.upper = true;
|
||||
FMT_FALLTHROUGH;
|
||||
|
Loading…
Reference in New Issue
Block a user