From 2a94cedeba61c7723036cca7bba40567aa7ea16e Mon Sep 17 00:00:00 2001 From: ehofman Date: Tue, 26 Oct 2004 12:09:31 +0000 Subject: [PATCH] Fix some warnings. --- src/Input/input.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5