Index: Source/core/paint/ListMarkerPainter.cpp |
diff --git a/Source/core/paint/ListMarkerPainter.cpp b/Source/core/paint/ListMarkerPainter.cpp |
index 79b342e3878db22d1f302325a20366fb339e4103..a1eb738d414d526599664690c22297784f946539 100644 |
--- a/Source/core/paint/ListMarkerPainter.cpp |
+++ b/Source/core/paint/ListMarkerPainter.cpp |
@@ -190,11 +190,11 @@ void ListMarkerPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& pai |
bool textNeedsReversing = WTF::Unicode::direction(m_renderListMarker.text()[0]) == WTF::Unicode::RightToLeft; |
StringBuilder reversedText; |
if (textNeedsReversing) { |
- int length = m_renderListMarker.text().length(); |
+ unsigned length = m_renderListMarker.text().length(); |
reversedText.reserveCapacity(length); |
for (int i = length - 1; i >= 0; --i) |
reversedText.append(m_renderListMarker.text()[i]); |
- ASSERT(reversedText.length() == reversedText.capacity()); |
+ ASSERT(reversedText.length() == length); |
textRun.setText(reversedText.toString()); |
} |