From 616ed0e7f888cdb65ee7fc338d2717fbea396d45 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sun, 1 Jan 2023 12:52:38 -0400 Subject: [PATCH] Fix compile errors with some compilers. --- src/modules/font/GenericShaper.cpp | 2 +- src/modules/font/freetype/HarfbuzzShaper.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }