From 1bd2fc059c73c91f64d86b0eee59eda6ba888354 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 2 Feb 2016 15:11:57 -0800 Subject: Clean up warnings in inputflinger. Bug: http://b/26936282 Change-Id: Ie1fb281425c3b8c4b3e6e88dc5722d51b77ee093 --- services/inputflinger/InputDispatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/inputflinger/InputDispatcher.cpp') 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: -- cgit v1.2.3-59-g8ed1b