Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/boost/int128/string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ namespace int128 {
template <typename T>
auto to_string(const T& value) -> std::enable_if_t<(std::is_same<T, int128_t>::value || std::is_same<T, uint128_t>::value), std::string>
{
char buffer[64U] {};
char buffer[64];
const auto last {detail::mini_to_chars(buffer, value, 10, false)};
return std::string{last};
return std::string{last, buffer + sizeof(buffer)};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps, a comment explaining that mini_to_chars outputs in from the end of the buffer?

}

} // namespace int128
Expand Down
Loading