aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-01-28 22:39:24 -0500
committerPaul Gilbert2016-01-28 22:39:24 -0500
commit202cb1210ad0e29bcb2da406c2f23b847242fd2b (patch)
tree2aaaf2b20d79df292890fc7963736cb30d6dbe57
parent8cb63588be090badb44dcd1eedd67ce1a6b3904c (diff)
downloadscummvm-rg350-202cb1210ad0e29bcb2da406c2f23b847242fd2b.tar.gz
scummvm-rg350-202cb1210ad0e29bcb2da406c2f23b847242fd2b.tar.bz2
scummvm-rg350-202cb1210ad0e29bcb2da406c2f23b847242fd2b.zip
SHERLOCK: SS: Fix signed char issues with new isPrintable function
-rw-r--r--engines/sherlock/journal.cpp2
-rw-r--r--engines/sherlock/journal.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/journal.cpp b/engines/sherlock/journal.cpp
index 3312422b92..a30734c4f5 100644
--- a/engines/sherlock/journal.cpp
+++ b/engines/sherlock/journal.cpp
@@ -706,7 +706,7 @@ void Journal::loadJournalFile(bool alreadyLoaded) {
}
}
-bool Journal::isPrintable(char ch) const {
+bool Journal::isPrintable(byte ch) const {
Talk &talk = *_vm->_talk;
const byte *opcodes = talk._opcodes;
diff --git a/engines/sherlock/journal.h b/engines/sherlock/journal.h
index 0bd277aced..bacd9fa8b5 100644
--- a/engines/sherlock/journal.h
+++ b/engines/sherlock/journal.h
@@ -76,7 +76,7 @@ protected:
/**
* Returns true if a given character is printable
*/
- bool isPrintable(char ch) const;
+ bool isPrintable(byte ch) const;
public:
static Journal *init(SherlockEngine *vm);
virtual ~Journal() {}