Index: ui/gfx/text_utils.cc |
diff --git a/ui/gfx/text_utils.cc b/ui/gfx/text_utils.cc |
index a5a1b7997f2ef31d138b779b8b4d3a367bf3498c..8a2658c8bed8f9ed9f3f4442861b67bc901d1786 100644 |
--- a/ui/gfx/text_utils.cc |
+++ b/ui/gfx/text_utils.cc |
@@ -13,7 +13,7 @@ string16 RemoveAcceleratorChar(const string16& s, |
int* accelerated_char_pos, |
int* accelerated_char_span) { |
bool escaped = false; |
- int last_char_pos = -1; |
+ ptrdiff_t last_char_pos = -1; |
int last_char_span = 0; |
base::i18n::UTF16CharIterator chars(&s); |
string16 accelerator_removed; |