From: curt Date: Mon, 4 Jun 2001 21:30:03 +0000 (+0000) Subject: Eliminate a couple compiler warnings. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=698004e4015b5661d0ce98b840334b7f7d572ffa;p=flightgear.git Eliminate a couple compiler warnings. --- diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 47039532c..2fe3a3a13 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -713,7 +713,7 @@ FGInput::_update_joystick () a.last_value = axis_values[j]; // SG_LOG(SG_INPUT, SG_INFO, "There are " // << a.bindings[modifiers].size() << " bindings"); - for (int k = 0; k < a.bindings[modifiers].size(); k++) + for (unsigned int k = 0; k < a.bindings[modifiers].size(); k++) a.bindings[modifiers][k].fire(axis_values[j]); } } @@ -727,7 +727,7 @@ FGInput::_update_joystick () // The press event may be repeated. if (!b.last_state || b.is_repeatable) { // SG_LOG(SG_INPUT, SG_INFO, "Button " << j << " has been pressed"); - for (int k = 0; k < b.bindings[modifiers].size(); k++) + for (unsigned int k = 0; k < b.bindings[modifiers].size(); k++) b.bindings[modifiers][k].fire(); } } else {