[Scummvm-git-logs] scummvm master -> e52f32cdd231cbb9a2ec3b0e47f7ec93e6ded2bf

digitall noreply at scummvm.org
Sat Mar 30 17:17:31 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e52f32cdd2 GUI: Fix Signed vs. Unsigned GCC Compiler Warnings


Commit: e52f32cdd231cbb9a2ec3b0e47f7ec93e6ded2bf
    https://github.com/scummvm/scummvm/commit/e52f32cdd231cbb9a2ec3b0e47f7ec93e6ded2bf
Author: D G Turner (digitall at scummvm.org)
Date: 2024-03-30T17:17:04Z

Commit Message:
GUI: Fix Signed vs. Unsigned GCC Compiler Warnings

Changed paths:
    gui/widgets/grid.cpp
    gui/widgets/groupedlist.cpp


diff --git a/gui/widgets/grid.cpp b/gui/widgets/grid.cpp
index e1f2a517d7c..3389fa8a952 100644
--- a/gui/widgets/grid.cpp
+++ b/gui/widgets/grid.cpp
@@ -881,7 +881,7 @@ int GridWidget::getNewSel(int index) {
     }
 
     // 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) {
             return _sortedEntryList[i]->entryID;
         } else if (_sortedEntryList[i]->isHeader == 0) {
diff --git a/gui/widgets/groupedlist.cpp b/gui/widgets/groupedlist.cpp
index fdb3c837131..928335e3583 100644
--- a/gui/widgets/groupedlist.cpp
+++ b/gui/widgets/groupedlist.cpp
@@ -298,7 +298,7 @@ int GroupedListWidget::getNextPos(int oldSel) {
     int pos = 0;
 
     // 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) {
             return pos;
         } else if (_listIndex[i] > 0) {
@@ -316,7 +316,7 @@ int GroupedListWidget::getNewSel(int index) {
     }
 
     // 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) {
             return _listIndex[i];
         } else if (_listIndex[i] >= 0) {




More information about the Scummvm-git-logs mailing list