From 31510cb437d4e4a7a6c07da367ebab152a5fa36b Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Mon, 4 Feb 2019 07:43:16 +0100 Subject: [PATCH] Fix warnings from Visual Studio Name hiding. Signed-off-by: Daniela Engert --- include/fmt/format-inl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index 6de18134..13e72a66 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -767,11 +767,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(p - start); + if (p != end) std::memmove(where, p, to_unsigned(end - p)); + n -= static_cast(p - where); } } }