vfs_real: Resolve sign conversion warnings
This commit is contained in:
parent
ed9ae5a977
commit
551882e512
|
@ -276,14 +276,14 @@ bool RealVfsFile::IsReadable() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::size_t RealVfsFile::Read(u8* data, std::size_t length, std::size_t offset) const {
|
std::size_t RealVfsFile::Read(u8* data, std::size_t length, std::size_t offset) const {
|
||||||
if (!backing->Seek(offset, SEEK_SET)) {
|
if (!backing->Seek(static_cast<s64>(offset), SEEK_SET)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return backing->ReadBytes(data, length);
|
return backing->ReadBytes(data, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::size_t RealVfsFile::Write(const u8* data, std::size_t length, std::size_t offset) {
|
std::size_t RealVfsFile::Write(const u8* data, std::size_t length, std::size_t offset) {
|
||||||
if (!backing->Seek(offset, SEEK_SET)) {
|
if (!backing->Seek(static_cast<s64>(offset), SEEK_SET)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return backing->WriteBytes(data, length);
|
return backing->WriteBytes(data, length);
|
||||||
|
|
Loading…
Reference in New Issue