From 551882e51264b173bbba36210cef174b0627d264 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 18 Aug 2020 14:53:26 -0400 Subject: vfs_real: Resolve sign conversion warnings --- src/core/file_sys/vfs_real.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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(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(offset), SEEK_SET)) { return 0; } return backing->WriteBytes(data, length); -- cgit v1.2.3