From 37c58812222b1ab57b7e3e5b430d115d54a83290 Mon Sep 17 00:00:00 2001 From: Shawn Zhong Date: Sat, 29 Apr 2023 14:16:39 -0500 Subject: [PATCH] Minor update --- include/fmt/core.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 919c97ae..5f51ea5d 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -967,9 +967,8 @@ template class buffer { auto free_cap = capacity_ - size_; if (free_cap < count) count = free_cap; auto out = make_checked(ptr_ + size_, count); - for (size_t i = 0; i < count; ++i) *out++ = begin[i]; + for (size_t i = 0; i < count; ++i) *out++ = *begin++; size_ += count; - begin += count; } }