Fix more compiler warnings
This commit is contained in:
committed by
Raphael Coeffic
parent
f33d5c005e
commit
d636487663
@@ -75,7 +75,7 @@ struct YamlThrTrace {
|
|||||||
Boards board(getCurrentBoard());
|
Boards board(getCurrentBoard());
|
||||||
int pots = board.getCapability(Board::Pots);
|
int pots = board.getCapability(Board::Pots);
|
||||||
int sliders = board.getCapability(Board::Sliders);
|
int sliders = board.getCapability(Board::Sliders);
|
||||||
if (cpn_value < pots + sliders) {
|
if (cpn_value < (unsigned int)(pots + sliders)) {
|
||||||
src = RawSource(SOURCE_TYPE_STICK, 4/* sticks */ + cpn_value);
|
src = RawSource(SOURCE_TYPE_STICK, 4/* sticks */ + cpn_value);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ void operator>>(const YAML::Node& node, T (&value)[N])
|
|||||||
for (const auto& elmt : node) {
|
for (const auto& elmt : node) {
|
||||||
try {
|
try {
|
||||||
int idx = std::stoi(elmt.first.Scalar());
|
int idx = std::stoi(elmt.first.Scalar());
|
||||||
if (idx < 0 || idx >= N) return;
|
if (idx < 0 || idx >= (int)N) return;
|
||||||
|
|
||||||
elmt.second >> value[idx];
|
elmt.second >> value[idx];
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
|||||||
Reference in New Issue
Block a user