Fixed clang tidy warning -multiple declarations in a single statement reduces readability

This commit is contained in:
gabime 2020-04-10 16:15:32 +03:00 committed by Victor Zverovich
parent 7404e33a73
commit 3cd5179f32

View File

@ -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;