From b8e7071f8d9ecbdfbcb6326cf3b01f6ea8f5df76 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 bb4b8423..7c916176 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -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(p - start); + if (p != end) std::memmove(where, p, to_unsigned(end - p)); + n -= static_cast(p - where); } } }