Skip to content

Commit b865c25

Browse files
committed
Don't include null terminated byte
1 parent 2b0ba16 commit b865c25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/int128/string.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ auto to_string(const T& value) -> std::enable_if_t<(std::is_same<T, int128_t>::v
2222
{
2323
char buffer[64U] {};
2424
const auto last {detail::mini_to_chars(buffer, value, 10, false)};
25-
return std::string{last, buffer + sizeof(buffer)};
25+
return std::string{last};
2626
}
2727

2828
} // namespace int128

0 commit comments

Comments
 (0)