diff options
author | Martin Kiewitz | 2010-08-06 15:12:03 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-08-06 15:12:03 +0000 |
commit | afed447b6fd3f52e7958c5ce499f84939f2e79e3 (patch) | |
tree | ba62675097d2517b79fd5be94e87386cae42cd58 /engines/sci/engine | |
parent | 2a4768401eeef5ec688524a24aba0740db0abf34 (diff) | |
download | scummvm-rg350-afed447b6fd3f52e7958c5ce499f84939f2e79e3.tar.gz scummvm-rg350-afed447b6fd3f52e7958c5ce499f84939f2e79e3.tar.bz2 scummvm-rg350-afed447b6fd3f52e7958c5ce499f84939f2e79e3.zip |
SCI: fix warnings
svn-id: r51788
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/script.cpp b/engines/sci/engine/script.cpp index 845f5b92e3..17ea7cf782 100644 --- a/engines/sci/engine/script.cpp +++ b/engines/sci/engine/script.cpp @@ -168,7 +168,7 @@ int32 Script::findSignature(const SciScriptSignature *signature, const byte *scr uint32 DWordOffset = 0; // first search for the magic DWORD while (DWordOffset < searchLimit) { - if (magicDWord == *(uint32 *)(scriptData + DWordOffset)) { + if (magicDWord == *(const uint32 *)(scriptData + DWordOffset)) { // magic DWORD found, check if actual signature matches uint32 offset = DWordOffset + signature->magicOffset; uint32 byteOffset = offset; @@ -200,7 +200,7 @@ void Script::matchSignatureAndPatch(uint16 scriptNr, const byte *scriptData, con if (g_sci->getGameId() == GID_HOYLE4) { const SciScriptSignature *signatureTable = hoyle4Signatures; while (signatureTable->data) { - uint32 foundOffset = findSignature(signatureTable, scriptData, scriptSize); + int32 foundOffset = findSignature(signatureTable, scriptData, scriptSize); if (foundOffset != -1) { // found, so apply the patch warning("matched %s on script %d offset %d", signatureTable->description, scriptNr, foundOffset); |