ZVISION: Remove implicit cast between integer types

This commit is contained in:
richiesams 2013-07-10 18:06:10 -05:00
parent 4398c04a7b
commit 0451503ecc
2 changed files with 3 additions and 3 deletions

View File

@ -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];
}

View File

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