summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-08-18 20:53:26 +0200
committerLioncash <mathew1800@gmail.com>2020-08-18 20:58:33 +0200
commit551882e51264b173bbba36210cef174b0627d264 (patch)
tree7152f79a7a8c5716291a019d02cd628bff493374
parentvfs_real: Avoid redundant map lookups (diff)
downloadyuzu-551882e51264b173bbba36210cef174b0627d264.tar
yuzu-551882e51264b173bbba36210cef174b0627d264.tar.gz
yuzu-551882e51264b173bbba36210cef174b0627d264.tar.bz2
yuzu-551882e51264b173bbba36210cef174b0627d264.tar.lz
yuzu-551882e51264b173bbba36210cef174b0627d264.tar.xz
yuzu-551882e51264b173bbba36210cef174b0627d264.tar.zst
yuzu-551882e51264b173bbba36210cef174b0627d264.zip
-rw-r--r--src/core/file_sys/vfs_real.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cpp
index 8c6cfcef7..488687ba9 100644
--- a/src/core/file_sys/vfs_real.cpp
+++ b/src/core/file_sys/vfs_real.cpp
@@ -276,14 +276,14 @@ bool RealVfsFile::IsReadable() 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 backing->ReadBytes(data, length);
}
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 backing->WriteBytes(data, length);