[Scummvm-git-logs] scummvm master -> 7b6fa644d74ad948911f83652e6bebf24d06e3c8

digitall noreply at scummvm.org
Thu Nov 26 23:18:20 UTC 2026


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

Summary:
7b6fa644d7 ULTIMA: NUVIE: Fix Type Error In Loop Causing GCC Compiler Warning


Commit: 7b6fa644d74ad948911f83652e6bebf24d06e3c8
    https://github.com/scummvm/scummvm/commit/7b6fa644d74ad948911f83652e6bebf24d06e3c8
Author: D G Turner (digitall at scummvm.org)
Date: 2026-11-26T23:15:48Z

Commit Message:
ULTIMA: NUVIE: Fix Type Error In Loop Causing GCC Compiler Warning

Due to pos variable being unsigned, the loop test was always true.

Changed paths:
    engines/ultima/nuvie/gui/widgets/msg_scroll_new_ui.cpp


diff --git a/engines/ultima/nuvie/gui/widgets/msg_scroll_new_ui.cpp b/engines/ultima/nuvie/gui/widgets/msg_scroll_new_ui.cpp
index b5c5828e487..21b34bf35e2 100644
--- a/engines/ultima/nuvie/gui/widgets/msg_scroll_new_ui.cpp
+++ b/engines/ultima/nuvie/gui/widgets/msg_scroll_new_ui.cpp
@@ -106,7 +106,8 @@ void MsgScrollNewUI::display_string(const Common::String &str, Font *f, bool inc
 	Common::String s = trailing_whitespace + str;
 	trailing_whitespace.clear();
 
-	uint16 i, pos;
+	int16 pos;
+	uint16 i;
 	for (i = 0, pos = s.size(); pos >= 0; pos--, i++) {
 		char c = s[pos];
 		if (c != '\t' && c != '\n')




More information about the Scummvm-git-logs mailing list