Skip to content

Commit

Permalink
Update tinyutf8.h
Browse files Browse the repository at this point in the history
Fixed issue #63
  • Loading branch information
DuffsDevice authored Aug 19, 2021
1 parent cab426c commit e5b60cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tinyutf8/tinyutf8.h
Original file line number Diff line number Diff line change
Expand Up @@ -3401,7 +3401,7 @@ namespace tiny_utf8
std::basic_string<typename basic_string<V, D, A>::data_type> basic_string<V, D, A>::cpp_str_bom() const noexcept
{
// Create std::string
std::basic_string<data_type> result = std::string( size() + 3 , ' ' );
std::basic_string<data_type> result = std::basic_string<data_type>( size() + 3 , ' ' );
data_type* tmp_buffer = const_cast<data_type*>( result.data() );

// Write BOM
Expand Down

0 comments on commit e5b60cb

Please sign in to comment.