summaryrefslogtreecommitdiff
path: root/platform/default/src/mbgl/text/bidi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/default/src/mbgl/text/bidi.cpp')
-rw-r--r--platform/default/src/mbgl/text/bidi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/src/mbgl/text/bidi.cpp b/platform/default/src/mbgl/text/bidi.cpp
index 32a3dc23ef..8e30017f5f 100644
--- a/platform/default/src/mbgl/text/bidi.cpp
+++ b/platform/default/src/mbgl/text/bidi.cpp
@@ -148,7 +148,7 @@ std::vector<StyledText> BiDi::processStyledText(const StyledText& input, std::se
// Each time we see a change in style, render a reversed chunk
// of everything since the last change
std::size_t styleRunStart = logicalEnd;
- uint8_t currentStyleIndex = styleIndices.at(styleRunStart - 1);
+ std::size_t currentStyleIndex = styleIndices.at(styleRunStart - 1);
for (std::size_t i = logicalEnd - 1; i >= logicalStart; i--) {
if (currentStyleIndex != styleIndices.at(i) || i == logicalStart) {
std::size_t styleRunEnd = i == logicalStart ? i : i + 1;