aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-09-29 09:45:16 +0300
committerEugene Sandulenko2013-09-29 09:45:16 +0300
commit7a669b770f81cbb739f6d45884d898a83fff8a13 (patch)
tree6172219c93c7525081055539f534c14b2408321e
parent2a2a5e51c6ae7ad77bcf16339982353a5b424b10 (diff)
downloadscummvm-rg350-7a669b770f81cbb739f6d45884d898a83fff8a13.tar.gz
scummvm-rg350-7a669b770f81cbb739f6d45884d898a83fff8a13.tar.bz2
scummvm-rg350-7a669b770f81cbb739f6d45884d898a83fff8a13.zip
SWORD25: Specifying int size to make Amiga happy
-rw-r--r--engines/sword25/input/inputengine.cpp2
-rw-r--r--engines/sword25/kernel/outputpersistenceblock.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword25/input/inputengine.cpp b/engines/sword25/input/inputengine.cpp
index 57fb6dfc09..0d1c449805 100644
--- a/engines/sword25/input/inputengine.cpp
+++ b/engines/sword25/input/inputengine.cpp
@@ -263,7 +263,7 @@ bool InputEngine::unpersist(InputPersistenceBlock &reader) {
// Read number of character callbacks and their names.
// Note: We do this only for compatibility with older engines resp.
// the original engine.
- uint characterCallbackCount;
+ uint32 characterCallbackCount;
reader.read(characterCallbackCount);
assert(characterCallbackCount == 1);
diff --git a/engines/sword25/kernel/outputpersistenceblock.cpp b/engines/sword25/kernel/outputpersistenceblock.cpp
index 48d0ab3d53..53fb624767 100644
--- a/engines/sword25/kernel/outputpersistenceblock.cpp
+++ b/engines/sword25/kernel/outputpersistenceblock.cpp
@@ -74,14 +74,14 @@ void OutputPersistenceBlock::write(bool value) {
void OutputPersistenceBlock::writeString(const Common::String &string) {
writeMarker(STRING_MARKER);
- write(string.size());
+ write((uint32)string.size());
rawWrite(string.c_str(), string.size());
}
void OutputPersistenceBlock::writeByteArray(Common::Array<byte> &value) {
writeMarker(BLOCK_MARKER);
- write((uint)value.size());
+ write((uint32)value.size());
rawWrite(&value[0], value.size());
}