commit | eae2a829891e7e8a186aa0ea6a4fbae8ea921b99 | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Tue Nov 02 19:30:02 2010 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Tue Nov 02 19:30:02 2010 |
tree | 6baafaa6444d618457f5b276082a28827621c9d0 | |
parent | 1afaf2a5146c2652b0f8fc313fe14e9fa5776224 [diff] [blame] |
Fix a bug that could occur when converting strings with leading characters above 127. BUG=None TEST=base_unittests --gtest_filter=*StringToInt* Review URL: http://codereview.chromium.org/4129012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64789 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/string_number_conversions.cc b/base/string_number_conversions.cc index 488d8075..76158dee 100644 --- a/base/string_number_conversions.cc +++ b/base/string_number_conversions.cc
@@ -143,7 +143,7 @@ template<> class WhitespaceHelper<char> { public: static bool Invoke(char c) { - return 0 != isspace(c); + return 0 != isspace(static_cast<unsigned char>(c)); } };