From 9c865560fd0b8b25752374871392d8d997083883 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 7 May 2016 07:10:40 -0700 Subject: [PATCH] Fix a warning --- fmt/format.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fmt/format.h b/fmt/format.h index 1f19f7ce..5013b810 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -889,7 +889,8 @@ class ThousandsSep { if (++digit_index_ % 3 != 0) return; buffer -= sep_.size(); - std::uninitialized_copy(sep_.data(), sep_.data() + sep_.size(), buffer); + std::uninitialized_copy(sep_.data(), sep_.data() + sep_.size(), + internal::make_ptr(buffer, sep_.size())); } };