Fix warnings from Visual Studio
Name hiding. Signed-off-by: Daniela Engert <dani@ngrt.de>
This commit is contained in:
parent
22de5a755f
commit
b8e7071f8d
@ -765,11 +765,11 @@ void sprintf_format(Double value, internal::buffer& buf,
|
|||||||
if (*p == '0') ++p;
|
if (*p == '0') ++p;
|
||||||
const char* end = buf.data() + n;
|
const char* end = buf.data() + n;
|
||||||
while (p != end && *p >= '1' && *p <= '9') ++p;
|
while (p != end && *p >= '1' && *p <= '9') ++p;
|
||||||
char* start = p;
|
char* where = p;
|
||||||
while (p != end && *p == '0') ++p;
|
while (p != end && *p == '0') ++p;
|
||||||
if (p == end || *p < '0' || *p > '9') {
|
if (p == end || *p < '0' || *p > '9') {
|
||||||
if (p != end) std::memmove(start, p, to_unsigned(end - p));
|
if (p != end) std::memmove(where, p, to_unsigned(end - p));
|
||||||
n -= static_cast<unsigned>(p - start);
|
n -= static_cast<unsigned>(p - where);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user