diff options
author | james.wei@intel.com <james.wei@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-18 10:04:06 +0000 |
---|---|---|
committer | james.wei@intel.com <james.wei@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-18 10:04:06 +0000 |
commit | 11a5e05689c05a448bee8070fbe15803a1c53a12 (patch) | |
tree | 0454fd837f30ae1204edcc10c00920714cec67a7 | |
parent | ea51dbdf5475cfdfe0f51438fb1d4c28360d2d57 (diff) | |
download | chromium_src-11a5e05689c05a448bee8070fbe15803a1c53a12.zip chromium_src-11a5e05689c05a448bee8070fbe15803a1c53a12.tar.gz chromium_src-11a5e05689c05a448bee8070fbe15803a1c53a12.tar.bz2 |
fix compatibility issue of char for android x86
In ARM, char is taken as unsigned char while in x86 platform, it is
taken as signed char by default.
This patch is contributed by Dai, Feng <fengx.dai@intel.com>
BUG=
Review URL: https://chromiumcodereview.appspot.com/11968037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177632 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | android_webview/native/input_stream_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android_webview/native/input_stream_unittest.cc b/android_webview/native/input_stream_unittest.cc index 59a326d..87b3fe3 100644 --- a/android_webview/native/input_stream_unittest.cc +++ b/android_webview/native/input_stream_unittest.cc @@ -102,6 +102,6 @@ TEST_F(InputStreamTest, CheckContentsReadCorrectly) { DoReadCountedStreamTest(bytes_requested, bytes_requested, &bytes_read); EXPECT_EQ(bytes_requested, bytes_read); for (int i = 0; i < bytes_requested; ++i) { - EXPECT_EQ(i, buffer->data()[i]); + EXPECT_EQ(i, (unsigned char)buffer->data()[i]); } } |