mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 11:04:44 +00:00
ZVISION: Remove implicit cast between integer types
This commit is contained in:
parent
4398c04a7b
commit
0451503ecc
@ -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];
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user