Permalink
Browse files

DIRECTOR: fixed warning with gcc 8.2

engines/director/lingo/lingo-funcs.cpp: In member function ‘void Director::Lingo::func_goto(Director::Datum&, Director::Datum&)’:
engines/director/lingo/lingo-funcs.cpp:194:39: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
      cleanedFilename += (const char) *p;
  • Loading branch information...
mgerhardy authored and digitall committed Sep 13, 2018
1 parent 5b9531f commit 4034497edd89a80f2e6aac6965b4d52c9d0cf971
Showing with 1 addition and 1 deletion.
  1. +1 −1 engines/director/lingo/lingo-funcs.cpp
@@ -191,7 +191,7 @@ void Lingo::func_goto(Datum &frame, Datum &movie) {
for (const byte *p = (const byte *)movieFilename.c_str(); *p; p++)
if (*p >= 0x20 && *p <= 0x7f)
cleanedFilename += (const char) *p;
cleanedFilename += (char) *p;
if (resMan.open(movieFilename)) {
fileExists = true;

0 comments on commit 4034497

Please sign in to comment.