From 6b4e3017caa37d0bf760f79292e8cc867b2f4ec9 Mon Sep 17 00:00:00 2001 From: "sidchat@google.com" Date: Sat, 30 May 2009 00:09:00 +0000 Subject: Possible fix for UnitTestFailure TBR=brettw Review URL: http://codereview.chromium.org/115962 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17268 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/spellchecker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome') diff --git a/chrome/browser/spellchecker.cc b/chrome/browser/spellchecker.cc index d185019..99ce06c 100644 --- a/chrome/browser/spellchecker.cc +++ b/chrome/browser/spellchecker.cc @@ -487,7 +487,7 @@ void SpellChecker::GetAutoCorrectionWord(const std::wstring& word, const wchar_t* word_char = word.c_str(); for (int i = 0; i <= kMaxAutoCorrectWordSize; i++) { // Ignore words having uppercase letter, other that the first letter. - if (i > 0 && u_isupper(word_char[i])) + if (i > 0 && u_isupper(static_cast(word_char[i]))) return; if (i >= word_length) -- cgit v1.1