commit | 1bd2fc059c73c91f64d86b0eee59eda6ba888354 | [log] [tgz] |
---|---|---|
author | Dan Albert <danalbert@google.com> | Tue Feb 02 15:11:57 2016 -0800 |
committer | Dan Albert <danalbert@google.com> | Tue Feb 02 15:11:57 2016 -0800 |
tree | 6189a677d8fbba087add8fef2d596950f3f9dd77 | |
parent | 2be113a2489e7d56b21f8ec340198959348012b3 [diff] [blame] |
Clean up warnings in inputflinger. Bug: http://b/26936282 Change-Id: Ie1fb281425c3b8c4b3e6e88dc5722d51b77ee093
diff --git a/services/inputflinger/InputDispatcher.cpp b/services/inputflinger/InputDispatcher.cpp index 0fba1bf..87c96ce 100644 --- a/services/inputflinger/InputDispatcher.cpp +++ b/services/inputflinger/InputDispatcher.cpp
@@ -134,7 +134,7 @@ 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: