diff --git a/src/modules/font/GenericShaper.cpp b/src/modules/font/GenericShaper.cpp index 7665d822d..1d8962b3f 100644 --- a/src/modules/font/GenericShaper.cpp +++ b/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(); } diff --git a/src/modules/font/freetype/HarfbuzzShaper.cpp b/src/modules/font/freetype/HarfbuzzShaper.cpp index 48023bf40..bd25dc040 100644 --- a/src/modules/font/freetype/HarfbuzzShaper.cpp +++ b/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(); }