[gcc 4.x] Fix the build failure due to -Werror=char-subscripts
commit3a9e7ea06f717789c3304ad4fc085e8f621a8088
authorvivek.vg <vivek.vg@samsung.com>
Mon, 20 Oct 2014 09:36:00 +0000 (20 02:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 20 Oct 2014 09:36:38 +0000 (20 09:36 +0000)
treed1cea80496413ff912a050c4a4d4f4c7c67b1c93
parentab18bcca0cc1475cf381211e595e75c1146c9115
[gcc 4.x] Fix the build failure due to -Werror=char-subscripts

Make the 'char' to 'unsigned char' to fix the following build failure.

device/hid/hid_connection_unittest.cc: In member function ‘virtual void device::HidConnectionTest_ReadWrite_Test::TestBody()’:
device/hid/hid_connection_unittest.cc:166:23: error: array subscript has type ‘char’ [-Werror=char-subscripts]
       buffer->data()[j] = i + j - 1;
                       ^
device/hid/hid_connection_unittest.cc:179:285: error: array subscript has type ‘char’ [-Werror=char-subscripts]
       ASSERT_EQ(i + j - 1, read_callback.buffer()->data()[j])

Review URL: https://codereview.chromium.org/664983002

Cr-Commit-Position: refs/heads/master@{#300238}
device/hid/hid_connection_unittest.cc