mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fix compile errors with some compilers.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user