From 3cd5179f32512ab07d66bd5d0e80aa4da9de627c Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 10 Apr 2020 16:15:32 +0300 Subject: [PATCH] Fixed clang tidy warning -multiple declarations in a single statement reduces readability --- src/format.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/format.cc b/src/format.cc index f540d7c7..b2a7d08e 100644 --- a/src/format.cc +++ b/src/format.cc @@ -81,7 +81,8 @@ char* sprintf_format(Double value, internal::buffer& 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;