Browse Source

Fix compile errors with some compilers.

Sasha Szpakowski 2 years ago
parent
commit
616ed0e7f8

+ 1 - 1
src/modules/font/GenericShaper.cpp

@@ -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
src/modules/font/freetype/HarfbuzzShaper.cpp

@@ -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();
 			}