[Scummvm-git-logs] scummvm master -> 7898c904ba978254b6c99124e5c83fa6b0d77d23

digitall dgturner at iee.org
Tue Feb 28 22:02:17 CET 2017


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:
7898c904ba Fix GCC Variable Range Warning.


Commit: 7898c904ba978254b6c99124e5c83fa6b0d77d23
    https://github.com/scummvm/scummvm/commit/7898c904ba978254b6c99124e5c83fa6b0d77d23
Author: D G Turner (digitall at scummvm.org)
Date: 2017-02-28T21:08:11Z

Commit Message:
Fix GCC Variable Range Warning.

This was due to the greater than 0x7f being redundant for signed char.

Changed paths:
    engines/director/lingo/lingo-funcs.cpp


diff --git a/engines/director/lingo/lingo-funcs.cpp b/engines/director/lingo/lingo-funcs.cpp
index f21f01a..307d79a 100644
--- a/engines/director/lingo/lingo-funcs.cpp
+++ b/engines/director/lingo/lingo-funcs.cpp
@@ -182,9 +182,9 @@ void Lingo::func_goto(Datum &frame, Datum &movie) {
 
 		Common::String cleanedFilename;
 
-		for (const char *p = movie.u.s->c_str(); *p; p++)
+		for (const byte *p = (const byte *)movie.u.s->c_str(); *p; p++)
 			if (*p >= 0x20 && *p <= 0x7f)
-				cleanedFilename += *p;
+				cleanedFilename += (const char) *p;
 
 		bool fileExists = false;
 





More information about the Scummvm-git-logs mailing list