Fix warnings from Visual Studio

Name hiding.

Signed-off-by: Daniela Engert <dani@ngrt.de>
This commit is contained in:
Daniela Engert 2019-02-04 07:43:16 +01:00
parent 22de5a755f
commit b8e7071f8d
No known key found for this signature in database
GPG Key ID: 7B95EE52040C5975

View File

@ -765,11 +765,11 @@ void sprintf_format(Double value, internal::buffer& buf,
if (*p == '0') ++p;
const char* end = buf.data() + n;
while (p != end && *p >= '1' && *p <= '9') ++p;
char* start = p;
char* where = p;
while (p != end && *p == '0') ++p;
if (p == end || *p < '0' || *p > '9') {
if (p != end) std::memmove(start, p, to_unsigned(end - p));
n -= static_cast<unsigned>(p - start);
if (p != end) std::memmove(where, p, to_unsigned(end - p));
n -= static_cast<unsigned>(p - where);
}
}
}