From 04699c366b4a1c086b257b8f02780936b1bf0b9f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 25 Jul 2020 03:37:22 -0400 Subject: gc_poller: Resolve -Wsign-compare warning --- src/input_common/gcadapter/gc_poller.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/input_common') diff --git a/src/input_common/gcadapter/gc_poller.cpp b/src/input_common/gcadapter/gc_poller.cpp index 65454cb42..f45983f3f 100644 --- a/src/input_common/gcadapter/gc_poller.cpp +++ b/src/input_common/gcadapter/gc_poller.cpp @@ -263,7 +263,8 @@ Common::ParamPackage GCAnalogFactory::GetNextInput() { if (analog_x_axis == -1) { analog_x_axis = axis; controller_number = static_cast(port); - } else if (analog_y_axis == -1 && analog_x_axis != axis && controller_number == port) { + } else if (analog_y_axis == -1 && analog_x_axis != axis && + controller_number == static_cast(port)) { analog_y_axis = axis; } } -- cgit v1.2.3