From a05b1f9ab99f1b4a12484c2290aeecbd1651916b Mon Sep 17 00:00:00 2001 From: JosJuice Date: Wed, 29 Jul 2020 10:55:02 +0200 Subject: [PATCH] DiscIO: Fix conversion warning Should fix https://bugs.dolphin-emu.org/issues/12208. --- Source/Core/DiscIO/WIABlob.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/DiscIO/WIABlob.cpp b/Source/Core/DiscIO/WIABlob.cpp index e1e9ecb543..cf5c7f9b65 100644 --- a/Source/Core/DiscIO/WIABlob.cpp +++ b/Source/Core/DiscIO/WIABlob.cpp @@ -443,10 +443,10 @@ bool WIARVZFileReader::ReadWiiDecrypted(u64 offset, u64 size, u8* out_ptr, (Common::swap32(data.first_sector) - partition_first_sector) * VolumeWii::BLOCK_DATA_SIZE; const u64 data_size = Common::swap32(data.number_of_sectors) * VolumeWii::BLOCK_DATA_SIZE; - if (!ReadFromGroups(&offset, &size, &out_ptr, chunk_size, VolumeWii::BLOCK_DATA_SIZE, - data_offset, data_size, Common::swap32(data.group_index), - Common::swap32(data.number_of_groups), - std::max(1, chunk_size / VolumeWii::GROUP_DATA_SIZE))) + if (!ReadFromGroups( + &offset, &size, &out_ptr, chunk_size, VolumeWii::BLOCK_DATA_SIZE, data_offset, + data_size, Common::swap32(data.group_index), Common::swap32(data.number_of_groups), + std::max(1, static_cast(chunk_size / VolumeWii::GROUP_DATA_SIZE)))) { return false; }