mirror of
https://github.com/PCSX2/pcsx2.git
synced 2025-12-16 04:08:48 +00:00
DEV9 / ATA: Fix u64 to u32 implicit casting warning
This commit is contained in:
parent
cb0bf953d3
commit
615cd00147
@ -105,7 +105,7 @@ bool ATA::IO_Write()
|
||||
{
|
||||
IO_SparseCacheUpdateLocation(imagePos + written);
|
||||
// Align to sparse block size.
|
||||
u32 writeSize = hddSparseBlockSize - ((imagePos + written) % hddSparseBlockSize);
|
||||
u32 writeSize = static_cast<u32>(hddSparseBlockSize - ((imagePos + written) % hddSparseBlockSize));
|
||||
// Limit to size of write.
|
||||
writeSize = std::min(writeSize, entry.length - written);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user