IsoReader: Fix ARM32 build

This commit is contained in:
Stenzek 2023-12-03 22:13:17 +10:00
parent 33db3b044c
commit 86a8c4c6ae
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

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