summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-07-19 09:57:00 -0400
committerGravatar Lioncash2018-07-19 09:58:32 -0400
commit6be342118abbc68296c38b91b7558cbeb30ad4c0 (patch)
treecccd09885f25e8c7e0b6b4d94d246a05c6834b2f /src
parentfsp_srv: Respect write length in Write() (diff)
downloadyuzu-6be342118abbc68296c38b91b7558cbeb30ad4c0.tar.gz
yuzu-6be342118abbc68296c38b91b7558cbeb30ad4c0.tar.xz
yuzu-6be342118abbc68296c38b91b7558cbeb30ad4c0.zip
fsp_srv: Resolve sign-mismatch warnings in assertion comparisons
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp6
1 files changed, 3 insertions, 3 deletions
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:
138 const std::vector<u8> data = ctx.ReadBuffer(); 138 const std::vector<u8> data = ctx.ReadBuffer();
139 139
140 ASSERT_MSG( 140 ASSERT_MSG(
141 data.size() <= length, 141 static_cast<s64>(data.size()) <= length,
142 "Attempting to write more data than requested (requested={:016X}, actual={:016X}).", 142 "Attempting to write more data than requested (requested={:016X}, actual={:016X}).",
143 length, data.size()); 143 length, data.size());
144 144
145 // Write the data to the Storage backend 145 // Write the data to the Storage backend
146 std::vector<u8> actual_data(data.begin(), data.begin() + length); 146 std::vector<u8> actual_data(data.begin(), data.begin() + length);
147 const auto written = backend->WriteBytes(std::move(actual_data), offset); 147 const std::size_t written = backend->WriteBytes(std::move(actual_data), offset);
148 148
149 ASSERT_MSG(written == length, 149 ASSERT_MSG(static_cast<s64>(written) == length,
150 "Could not write all bytes to file (requested={:016X}, actual={:016X}).", length, 150 "Could not write all bytes to file (requested={:016X}, actual={:016X}).", length,
151 written); 151 written);
152 152