浏览代码

Fix compile errors with some compilers.

Sasha Szpakowski 2 年之前
父节点
当前提交
616ed0e7f8
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/modules/font/GenericShaper.cpp
  2. 1 1
      src/modules/font/freetype/HarfbuzzShaper.cpp

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