summaryrefslogtreecommitdiffstats
path: root/views/touchui
diff options
context:
space:
mode:
authormiletus@chromium.org <miletus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-07 18:52:45 +0000
committermiletus@chromium.org <miletus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-07 18:52:45 +0000
commit4695b4ecab2187af6259324e7fdf039462498570 (patch)
tree1ad18da4eadde35ed1a0bd96cd3006c16740ce6f /views/touchui
parent45673b4d45e4e1ea15999a29defae5bad2eb4fb3 (diff)
downloadchromium_src-4695b4ecab2187af6259324e7fdf039462498570.zip
chromium_src-4695b4ecab2187af6259324e7fdf039462498570.tar.gz
chromium_src-4695b4ecab2187af6259324e7fdf039462498570.tar.bz2
Fixing signed/unsigned char bug on ARM for TouchFactory
Change the type of valuator_lookup_[kMaxDeviceNum][TP_LAST_ENTRY] from "char" to "signed char". -1 is set for valuator_lookup_[][] for invalid entry. Some ARM platform/cross-compiler defaults "char" as "unsigned char" which does not accommodate negative value -1. Fixing it by specifically setting the type to "signed char". BUG= TEST= Review URL: http://codereview.chromium.org/7312028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91736 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/touchui')
-rw-r--r--views/touchui/touch_factory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/touchui/touch_factory.h b/views/touchui/touch_factory.h
index 201f5bd..5191a71 100644
--- a/views/touchui/touch_factory.h
+++ b/views/touchui/touch_factory.h
@@ -174,7 +174,7 @@ class TouchFactory {
// index at the expense of space. If the kMaxDeviceNum grows larger that the
// space waste becomes a concern, the 2D lookup table can be replaced by a
// hash map.
- char valuator_lookup_[kMaxDeviceNum][TP_LAST_ENTRY];
+ signed char valuator_lookup_[kMaxDeviceNum][TP_LAST_ENTRY];
// Index table to find the min & max value of the TouchParam on a specific
// device.