Skip to content

Commit

Permalink
Fix a conversion warning with Clang10 on Windows
Browse files Browse the repository at this point in the history
Fixes #1747
  • Loading branch information
0x8000-0000 committed Jul 3, 2020
1 parent 1f3f846 commit cdbbe00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ template <typename U>
void buffer<T>::append(const U* begin, const U* end) {
size_t new_size = size_ + to_unsigned(end - begin);
reserve(new_size);
std::uninitialized_copy(begin, end, make_checked(ptr_, capacity_) + size_);
std::uninitialized_copy(begin, end, make_checked(ptr_ + size_, capacity_ - size_));
size_ = new_size;
}
} // namespace detail
Expand Down

0 comments on commit cdbbe00

Please sign in to comment.