Fix compile errors with some compilers.

This commit is contained in:
Sasha Szpakowski
2023-01-01 12:52:38 -04:00
parent 6f14a18da0
commit 616ed0e7f8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ void GenericShaper::computeGlyphPositions(const ColoredCodepoints &codepoints, R
if (colorToAdd.hasValue && colors && positions)
{
IndexedColor c = {colorToAdd.value, positions->size()};
IndexedColor c = {colorToAdd.value, (int) positions->size()};
colors->push_back(c);
colorToAdd.clear();
}
+1 -1
View File
@@ -283,7 +283,7 @@ void HarfbuzzShaper::computeGlyphPositions(const ColoredCodepoints &codepoints,
if (colorToAdd.hasValue && colors && positions)
{
IndexedColor c = {colorToAdd.value, positions->size()};
IndexedColor c = {colorToAdd.value, (int) positions->size()};
colors->push_back(c);
colorToAdd.clear();
}