Chromium Code Reviews| Index: Source/platform/fonts/shaping/SimpleShaper.cpp |
| diff --git a/Source/platform/fonts/shaping/SimpleShaper.cpp b/Source/platform/fonts/shaping/SimpleShaper.cpp |
| index 431e5a43a6aaf9dc3488fa367f25448550a5bc66..babd006dfd3be334b66895644beeb6fac72ae0b4 100644 |
| --- a/Source/platform/fonts/shaping/SimpleShaper.cpp |
| +++ b/Source/platform/fonts/shaping/SimpleShaper.cpp |
| @@ -195,14 +195,14 @@ unsigned SimpleShaper::advanceInternal(TextIterator& textIterator, GlyphBuffer* |
| return consumedCharacters; |
| } |
| -unsigned SimpleShaper::advance(unsigned offset, GlyphBuffer* glyphBuffer) |
| +unsigned SimpleShaper::advance(int offset, GlyphBuffer* glyphBuffer) |
| { |
| - unsigned length = m_textRun.length(); |
| + int length = m_textRun.length(); |
| if (offset > length) |
| offset = length; |
| - if (m_currentCharacter >= offset) |
| + if (m_currentCharacter >= static_cast<unsigned>(offset)) |
|
pdr.
2015/09/08 21:21:24
I think we'll still need to fix this issue which i
|
| return 0; |
| if (m_textRun.is8Bit()) { |