summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputDispatcher.cpp
diff options
context:
space:
mode:
author Dan Albert <danalbert@google.com> 2016-02-03 00:46:35 +0000
committer android-build-merger <android-build-merger@google.com> 2016-02-03 00:46:35 +0000
commit82d47db4815ab8b49f4c399ba16d2af12926cfe1 (patch)
tree06525706267e157ab3bf3e8bd71a64c1c86c8a10 /services/inputflinger/InputDispatcher.cpp
parentf4acff7c490c6bf8a88661a15ca4bf2536ca4854 (diff)
parentca5ad095f428f7c93628db5813e427c47598d102 (diff)
Merge "Clean up warnings in inputflinger." am: f3606ef25f
am: ca5ad095f4 * commit 'ca5ad095f428f7c93628db5813e427c47598d102': Clean up warnings in inputflinger.
Diffstat (limited to 'services/inputflinger/InputDispatcher.cpp')
-rw-r--r--services/inputflinger/InputDispatcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/inputflinger/InputDispatcher.cpp b/services/inputflinger/InputDispatcher.cpp
index 0fba1bf3e4..87c96cec1b 100644
--- a/services/inputflinger/InputDispatcher.cpp
+++ b/services/inputflinger/InputDispatcher.cpp
@@ -134,7 +134,7 @@ static bool isValidMotionAction(int32_t action, int32_t actionButton, int32_t po
case AMOTION_EVENT_ACTION_POINTER_DOWN:
case AMOTION_EVENT_ACTION_POINTER_UP: {
int32_t index = getMotionEventActionPointerIndex(action);
- return index >= 0 && size_t(index) < pointerCount;
+ return index >= 0 && index < pointerCount;
}
case AMOTION_EVENT_ACTION_BUTTON_PRESS:
case AMOTION_EVENT_ACTION_BUTTON_RELEASE: