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

sev- noreply at scummvm.org
Sun Apr 9 10:50:04 UTC 2023


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:
eab1a92a6d GUI: Fix signed/unsigned mismatches


Commit: eab1a92a6de103aa6b7660f6bcd8f9429aa25e3e
    https://github.com/scummvm/scummvm/commit/eab1a92a6de103aa6b7660f6bcd8f9429aa25e3e
Author: elasota (ejlasota at gmail.com)
Date: 2023-04-09T12:50:01+02:00

Commit Message:
GUI: Fix signed/unsigned mismatches

Changed paths:
    gui/options.cpp


diff --git a/gui/options.cpp b/gui/options.cpp
index 2002ff989b1..66740c3b18e 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -2635,7 +2635,7 @@ void GlobalOptionsDialog::addMiscControls(GuiObject *boss, const Common::String
 	_debugLevelPopUp = new PopUpWidget(boss, prefix + "DebugLevelPopup");
 
 	// I18N: Debug level -1, no messages
-	_debugLevelPopUp->appendEntry(_("None"), -1);
+	_debugLevelPopUp->appendEntry(_("None"), (uint32)-1);
 
 	for (int i = 0; i < 11; i++)
 		_debugLevelPopUp->appendEntry(Common::U32String::format("%d", i), i);
@@ -2928,8 +2928,8 @@ void GlobalOptionsDialog::apply() {
 	else
 		_autosavePeriodPopUp->setSelected(0);
 
-	if (gDebugLevel != (int)_debugLevelPopUp->getSelectedTag()) {
-		gDebugLevel = _debugLevelPopUp->getSelectedTag();
+	if (gDebugLevel != (int32)(_debugLevelPopUp->getSelectedTag())) {
+		gDebugLevel = (int32)(_debugLevelPopUp->getSelectedTag());
 
 		warning("Debug level set to %d", gDebugLevel);
 	}




More information about the Scummvm-git-logs mailing list