IsoReader: Fix ARM32 build
This commit is contained in:
parent
33db3b044c
commit
86a8c4c6ae
|
@ -370,9 +370,8 @@ bool IsoReader::ReadFile(const ISODirectoryEntry& de, std::vector<u8>* data, Err
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static_assert(sizeof(size_t) == sizeof(u64));
|
|
||||||
const u32 num_sectors = (de.length_le + (SECTOR_SIZE - 1)) / SECTOR_SIZE;
|
const u32 num_sectors = (de.length_le + (SECTOR_SIZE - 1)) / SECTOR_SIZE;
|
||||||
data->resize(num_sectors * static_cast<u64>(SECTOR_SIZE));
|
data->resize(num_sectors * static_cast<size_t>(SECTOR_SIZE));
|
||||||
for (u32 i = 0, lsn = de.location_le; i < num_sectors; i++, lsn++)
|
for (u32 i = 0, lsn = de.location_le; i < num_sectors; i++, lsn++)
|
||||||
{
|
{
|
||||||
if (!ReadSector(data->data() + (i * SECTOR_SIZE), lsn, error))
|
if (!ReadSector(data->data() + (i * SECTOR_SIZE), lsn, error))
|
||||||
|
|
Loading…
Reference in New Issue