From 6be342118abbc68296c38b91b7558cbeb30ad4c0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 19 Jul 2018 09:57:00 -0400 Subject: fsp_srv: Resolve sign-mismatch warnings in assertion comparisons --- src/core/hle/service/filesystem/fsp_srv.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/hle/service/filesystem') diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp index e3f237c5c..c093c1183 100644 --- a/src/core/hle/service/filesystem/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp_srv.cpp @@ -138,15 +138,15 @@ private: const std::vector data = ctx.ReadBuffer(); ASSERT_MSG( - data.size() <= length, + static_cast(data.size()) <= length, "Attempting to write more data than requested (requested={:016X}, actual={:016X}).", length, data.size()); // Write the data to the Storage backend std::vector actual_data(data.begin(), data.begin() + length); - const auto written = backend->WriteBytes(std::move(actual_data), offset); + const std::size_t written = backend->WriteBytes(std::move(actual_data), offset); - ASSERT_MSG(written == length, + ASSERT_MSG(static_cast(written) == length, "Could not write all bytes to file (requested={:016X}, actual={:016X}).", length, written); -- cgit v1.2.3