From: ehofman Date: Tue, 26 Oct 2004 12:09:31 +0000 (+0000) Subject: Fix some warnings. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2a94cedeba61c7723036cca7bba40567aa7ea16e;p=flightgear.git Fix some warnings. --- diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 2e3c89cca..0f39b4c37 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -479,7 +479,7 @@ FGInput::_init_joystick () n_axis = num_node->getIntValue(TGT_PLATFORM,n_axis); } - if (n_axis >= naxes) { + if (n_axis >= (size_t)naxes) { SG_LOG(SG_INPUT, SG_DEBUG, "Dropping bindings for axis " << n_axis); continue; } @@ -517,7 +517,7 @@ FGInput::_init_joystick () n_but = num_node->getIntValue(TGT_PLATFORM,n_but); } - if (n_but >= nbuttons) { + if (n_but >= (size_t)nbuttons) { SG_LOG(SG_INPUT, SG_DEBUG, "Dropping bindings for button " << n_but); continue; }