Index: Source/platform/fonts/shaping/SimpleShaper.cpp |
diff --git a/Source/platform/fonts/shaping/SimpleShaper.cpp b/Source/platform/fonts/shaping/SimpleShaper.cpp |
index 24be19b9ee933caae0e3af3b62499483fc314198..1578bae41d565f9fd8e79acac4a766ea9e6f8565 100644 |
--- a/Source/platform/fonts/shaping/SimpleShaper.cpp |
+++ b/Source/platform/fonts/shaping/SimpleShaper.cpp |
@@ -134,7 +134,7 @@ float SimpleShaper::adjustSpacing(float width, const CharacterData& charData, |
} |
} |
if (m_run.allowsTrailingExpansion() |
- || (m_run.ltr() && charData.characterOffset + charData.clusterLength < static_cast<size_t>(m_run.length())) |
+ || (m_run.ltr() && charData.characterOffset + charData.clusterLength < m_run.length()) |
|| (m_run.rtl() && charData.characterOffset)) { |
m_expansion -= m_expansionPerOpportunity; |
width += m_expansionPerOpportunity; |