Fix a clang-tidy warning

This commit is contained in:
Victor Zverovich 2020-04-12 08:27:39 -07:00
parent 07b4c246ea
commit 5899267c47

View File

@ -81,8 +81,8 @@ char* sprintf_format(Double value, internal::buffer<char>& buf,
unsigned n = internal::to_unsigned(result); unsigned n = internal::to_unsigned(result);
if (n < buf.capacity()) { if (n < buf.capacity()) {
// Find the decimal point. // Find the decimal point.
auto p = buf.data(); auto* p = buf.data();
auto end = p + n; auto* end = p + n;
if (*p == '+' || *p == '-') ++p; if (*p == '+' || *p == '-') ++p;
if (specs.type != 'a' && specs.type != 'A') { if (specs.type != 'a' && specs.type != 'A') {
while (p < end && *p >= '0' && *p <= '9') ++p; while (p < end && *p >= '0' && *p <= '9') ++p;