mirror of
https://github.com/fmtlib/fmt.git
synced 2024-10-02 13:02:03 +00:00
Fix warnings from Visual Studio
Name hiding. Signed-off-by: Daniela Engert <dani@ngrt.de>
This commit is contained in:
parent
61c9b563c2
commit
31510cb437
@ -767,11 +767,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