瀏覽代碼

Fix another compile error with some compilers.

Sasha Szpakowski 2 年之前
父節點
當前提交
bb82a448be
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/font/freetype/HarfbuzzShaper.cpp

+ 1 - 1
src/modules/font/freetype/HarfbuzzShaper.cpp

@@ -267,7 +267,7 @@ void HarfbuzzShaper::computeGlyphPositions(const ColoredCodepoints &codepoints,
 				continue;
 
 			// This is a glyph index at this point, despite the name.
-			GlyphIndex gindex = { info.codepoint, bufferrange.index };
+			GlyphIndex gindex = { (int) info.codepoint, bufferrange.index };
 
 			if (clustercodepoint == '\t' && isUsingSpacesForTab())
 			{