Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/julelang/jule
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jan 31, 2024
2 parents 7cceac7 + d16f0de commit 94f78de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/utf16.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace jule
{
std::vector<jule::I32> a(s.size());
jule::Int n = 0;
for (jule::Int i = 0; i < s.size(); ++i)
for (std::size_t i = 0; i < s.size(); ++i)
{
jule::U16 r = s[i];
if (r < jule::UTF16_SURR1 || jule::UTF16_SURR3 <= r)
Expand Down Expand Up @@ -84,7 +84,7 @@ namespace jule
{
std::vector<jule::I32> runes;
const char *str = s.c_str();
for (jule::Int index = 0; index < s.length();)
for (std::size_t index = 0; index < s.length();)
{
jule::I32 rune;
jule::Int n;
Expand All @@ -100,7 +100,7 @@ namespace jule
const std::size_t len)
{
std::vector<jule::U16> code_page(len);
for (jule::Int i = 0; i < len; ++i)
for (std::size_t i = 0; i < len; ++i)
code_page[i] = static_cast<jule::U16>(wstr[i]);
return jule::runes_to_utf8(jule::utf16_decode(code_page));
}
Expand Down

0 comments on commit 94f78de

Please sign in to comment.