mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-05 17:20:30 +00:00
GUI: Fix Signed vs. Unsigned GCC Compiler Warnings
This commit is contained in:
parent
3dcd3e6fa6
commit
e52f32cdd2
@ -881,7 +881,7 @@ int GridWidget::getNewSel(int index) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Find the index-th item in the grid
|
// Find the index-th item in the grid
|
||||||
for (int i = 0; i < _sortedEntryList.size(); i++) {
|
for (uint i = 0; i < _sortedEntryList.size(); i++) {
|
||||||
if (index == 0 && _sortedEntryList[i]->isHeader == 0) {
|
if (index == 0 && _sortedEntryList[i]->isHeader == 0) {
|
||||||
return _sortedEntryList[i]->entryID;
|
return _sortedEntryList[i]->entryID;
|
||||||
} else if (_sortedEntryList[i]->isHeader == 0) {
|
} else if (_sortedEntryList[i]->isHeader == 0) {
|
||||||
|
@ -298,7 +298,7 @@ int GroupedListWidget::getNextPos(int oldSel) {
|
|||||||
int pos = 0;
|
int pos = 0;
|
||||||
|
|
||||||
// Find the position of the new selection in the list.
|
// Find the position of the new selection in the list.
|
||||||
for (int i = 0; i < _listIndex.size(); i++) {
|
for (uint i = 0; i < _listIndex.size(); i++) {
|
||||||
if (_listIndex[i] == oldSel) {
|
if (_listIndex[i] == oldSel) {
|
||||||
return pos;
|
return pos;
|
||||||
} else if (_listIndex[i] > 0) {
|
} else if (_listIndex[i] > 0) {
|
||||||
@ -316,7 +316,7 @@ int GroupedListWidget::getNewSel(int index) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Find the index-th item in the list
|
// Find the index-th item in the list
|
||||||
for (int i = 0; i < _listIndex.size(); i++) {
|
for (uint i = 0; i < _listIndex.size(); i++) {
|
||||||
if (index == 0 && _listIndex[i] >= 0) {
|
if (index == 0 && _listIndex[i] >= 0) {
|
||||||
return _listIndex[i];
|
return _listIndex[i];
|
||||||
} else if (_listIndex[i] >= 0) {
|
} else if (_listIndex[i] >= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user