From 5899267c47c12ce0be664d913440fd9be50f20b3 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 12 Apr 2020 08:27:39 -0700 Subject: [PATCH] Fix a clang-tidy warning --- src/format.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/format.cc b/src/format.cc index b2a7d08e..4b8940a0 100644 --- a/src/format.cc +++ b/src/format.cc @@ -81,8 +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(); - auto 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;