Skip to content

Commit

Permalink
Merge pull request #71 from vil02/avoid_sign_conversion_in_utf16_decode
Browse files Browse the repository at this point in the history
style: avoid sign conversion in `utf16_decode`
  • Loading branch information
mertcandav authored Jan 31, 2024
2 parents cb334fc + f23c976 commit ded1922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/utf16.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace jule
std::vector<jule::I32> utf16_decode(const std::vector<jule::U16> &s) noexcept
{
std::vector<jule::I32> a(s.size());
jule::Int n = 0;
std::size_t n = 0;
for (std::size_t i = 0; i < s.size(); ++i)
{
jule::U16 r = s[i];
Expand Down

0 comments on commit ded1922

Please sign in to comment.