mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Fixed clang tidy warning -multiple declarations in a single statement reduces readability
This commit is contained in:
parent
7404e33a73
commit
3cd5179f32
@ -81,7 +81,8 @@ char* sprintf_format(Double value, internal::buffer<char>& buf,
|
||||
unsigned n = internal::to_unsigned(result);
|
||||
if (n < buf.capacity()) {
|
||||
// Find the decimal point.
|
||||
auto p = buf.data(), end = p + n;
|
||||
auto p = buf.data();
|
||||
auto end = p + n;
|
||||
if (*p == '+' || *p == '-') ++p;
|
||||
if (specs.type != 'a' && specs.type != 'A') {
|
||||
while (p < end && *p >= '0' && *p <= '9') ++p;
|
||||
|
Loading…
Reference in New Issue
Block a user