From 7898c904ba978254b6c99124e5c83fa6b0d77d23 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Tue, 28 Feb 2017 21:08:11 +0000 Subject: Fix GCC Variable Range Warning. This was due to the greater than 0x7f being redundant for signed char. --- engines/director/lingo/lingo-funcs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') 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; -- cgit v1.2.3