Fix compiler warnings

This commit is contained in:
elecpower
2021-12-31 10:53:09 +01:00
committed by Raphael Coeffic
parent d0089232ff
commit 2d47701b72
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -583,7 +583,7 @@ StringTagMappingTable Boards::getAnalogNamesLookupTable(Board::Type board)
QString Boards::getAnalogInputName(Board::Type board, int index)
{
const StringTagMappingTable& lut = getAnalogNamesLookupTable(board);
if (index < lut.size())
if (index < (int)lut.size())
return QString::fromStdString(lut[index].name);
return CPN_STR_UNKNOWN_ITEM;