diff options
author | D G Turner | 2017-02-28 21:08:11 +0000 |
---|---|---|
committer | D G Turner | 2017-02-28 21:08:11 +0000 |
commit | 7898c904ba978254b6c99124e5c83fa6b0d77d23 (patch) | |
tree | 511764c2e7938a3340522ee83bd4e0fae334af9a /engines/director | |
parent | b779f20502308c8db5c168c789f8867a13c8020b (diff) | |
download | scummvm-rg350-7898c904ba978254b6c99124e5c83fa6b0d77d23.tar.gz scummvm-rg350-7898c904ba978254b6c99124e5c83fa6b0d77d23.tar.bz2 scummvm-rg350-7898c904ba978254b6c99124e5c83fa6b0d77d23.zip |
Fix GCC Variable Range Warning.
This was due to the greater than 0x7f being redundant for signed char.
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/lingo/lingo-funcs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo-funcs.cpp b/engines/director/lingo/lingo-funcs.cpp index f21f01a967..307d79a0a2 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; |