aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/zfs_archive.cpp4
-rw-r--r--engines/zvision/zfs_archive.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/zvision/zfs_archive.cpp b/engines/zvision/zfs_archive.cpp
index 85933b3240..fbfe3d3dc4 100644
--- a/engines/zvision/zfs_archive.cpp
+++ b/engines/zvision/zfs_archive.cpp
@@ -76,7 +76,7 @@ void ZfsArchive::readHeaders(Common::SeekableReadStream *stream) {
nextOffset = stream->readUint32LE();
// Read in each entry header
- for (int i = 0; i < _header.filesPerBlock; i++) {
+ for (uint32 i = 0; i < _header.filesPerBlock; i++) {
ZfsEntryHeader entryHeader;
entryHeader.name = readEntryName(stream);
@@ -145,7 +145,7 @@ Common::SeekableReadStream *ZfsArchive::createReadStreamForMember(const Common::
return new Common::MemoryReadStream(buffer, entryHeader->size, DisposeAfterUse::YES);
}
-void ZfsArchive::unXor(byte *buffer, int length, const byte *xorKey) const {
+void ZfsArchive::unXor(byte *buffer, uint32 length, const byte *xorKey) const {
for (uint32 i = 0; i < length; i++)
buffer[i] ^= xorKey[i % 4];
}
diff --git a/engines/zvision/zfs_archive.h b/engines/zvision/zfs_archive.h
index ccdf192571..cb371f2c87 100644
--- a/engines/zvision/zfs_archive.h
+++ b/engines/zvision/zfs_archive.h
@@ -113,7 +113,7 @@ private:
* @param buffer The data to decode
* @param length Length of buffer
*/
- void unXor(byte *buffer, int length, const byte *xorKey) const;
+ void unXor(byte *buffer, uint32 length, const byte *xorKey) const;
};
} // End of namespace ZVision