mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-26 04:40:06 +00:00
fsp_srv: Resolve sign-mismatch warnings in assertion comparisons
This commit is contained in:
parent
d6e9b96e2f
commit
6be342118a
@ -138,15 +138,15 @@ private:
|
|||||||
const std::vector<u8> data = ctx.ReadBuffer();
|
const std::vector<u8> data = ctx.ReadBuffer();
|
||||||
|
|
||||||
ASSERT_MSG(
|
ASSERT_MSG(
|
||||||
data.size() <= length,
|
static_cast<s64>(data.size()) <= length,
|
||||||
"Attempting to write more data than requested (requested={:016X}, actual={:016X}).",
|
"Attempting to write more data than requested (requested={:016X}, actual={:016X}).",
|
||||||
length, data.size());
|
length, data.size());
|
||||||
|
|
||||||
// Write the data to the Storage backend
|
// Write the data to the Storage backend
|
||||||
std::vector<u8> actual_data(data.begin(), data.begin() + length);
|
std::vector<u8> 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<s64>(written) == length,
|
||||||
"Could not write all bytes to file (requested={:016X}, actual={:016X}).", length,
|
"Could not write all bytes to file (requested={:016X}, actual={:016X}).", length,
|
||||||
written);
|
written);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user