SWORD25: Specifying int size to make Amiga happy

This commit is contained in:
Eugene Sandulenko 2013-09-29 09:45:16 +03:00
parent 2a2a5e51c6
commit 7a669b770f
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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());
}