Skip to content

Commit

Permalink
Merge pull request xbmc#20703 from howie-f/v20-signcompare
Browse files Browse the repository at this point in the history
fix build error sign-compare after xbmc#20665
  • Loading branch information
lrusak committed Dec 19, 2021
2 parents 4b2e38a + fa7f103 commit 8f73d3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/guilib/GUIFontTTF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ std::vector<CGUIFontTTF::Glyph> CGUIFontTTF::GetHarfBuzzShapedGlyphs(const vecTe
}

// HB_SCRIPT_COMMON or HB_SCRIPT_INHERITED should be replaced with previous script
for (int i = 0; i < static_cast<int>(scripts.size()); ++i)
for (size_t i = 0; i < scripts.size(); ++i)
{
if (scripts[i] == HB_SCRIPT_COMMON || scripts[i] == HB_SCRIPT_INHERITED)
{
Expand All @@ -663,7 +663,7 @@ std::vector<CGUIFontTTF::Glyph> CGUIFontTTF::GetHarfBuzzShapedGlyphs(const vecTe
}
else
{
for (unsigned int j = lastSetIndex + 1; j < i; j++)
for (size_t j = lastSetIndex + 1; j < i; ++j)
scripts[j] = scripts[i];
lastScript = scripts[i];
lastScriptIndex = i;
Expand Down

0 comments on commit 8f73d3e

Please sign in to comment.