Fix some warnings.
This commit is contained in:
parent
ba7fd47740
commit
2a94cedeba
1 changed files with 2 additions and 2 deletions
|
@ -479,7 +479,7 @@ FGInput::_init_joystick ()
|
||||||
n_axis = num_node->getIntValue(TGT_PLATFORM,n_axis);
|
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);
|
SG_LOG(SG_INPUT, SG_DEBUG, "Dropping bindings for axis " << n_axis);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -517,7 +517,7 @@ FGInput::_init_joystick ()
|
||||||
n_but = num_node->getIntValue(TGT_PLATFORM,n_but);
|
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);
|
SG_LOG(SG_INPUT, SG_DEBUG, "Dropping bindings for button " << n_but);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue