diff options
| author | 2018-07-19 20:51:15 -0400 | |
|---|---|---|
| committer | 2018-07-19 20:51:15 -0400 | |
| commit | 364b950515c37f56809697d36212ea8ceb676c6c (patch) | |
| tree | 167df76ddaa0b09153d9bd69c74069b47f4afec6 /src/core/loader/nso.cpp | |
| parent | nso: Remove unused function ReadSegment() (diff) | |
| download | yuzu-364b950515c37f56809697d36212ea8ceb676c6c.tar.gz yuzu-364b950515c37f56809697d36212ea8ceb676c6c.tar.xz yuzu-364b950515c37f56809697d36212ea8ceb676c6c.zip | |
nso: Silence implicit sign conversion warnings
Diffstat (limited to 'src/core/loader/nso.cpp')
| -rw-r--r-- | src/core/loader/nso.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index b25810e07..06b1b33f4 100644 --- a/src/core/loader/nso.cpp +++ b/src/core/loader/nso.cpp | |||
| @@ -69,11 +69,13 @@ FileType AppLoader_NSO::IdentifyType(const FileSys::VirtualFile& file) { | |||
| 69 | static std::vector<u8> DecompressSegment(const std::vector<u8>& compressed_data, | 69 | static std::vector<u8> DecompressSegment(const std::vector<u8>& compressed_data, |
| 70 | const NsoSegmentHeader& header) { | 70 | const NsoSegmentHeader& header) { |
| 71 | std::vector<u8> uncompressed_data(header.size); | 71 | std::vector<u8> uncompressed_data(header.size); |
| 72 | const int bytes_uncompressed = LZ4_decompress_safe( | 72 | const int bytes_uncompressed = |
| 73 | reinterpret_cast<const char*>(compressed_data.data()), | 73 | LZ4_decompress_safe(reinterpret_cast<const char*>(compressed_data.data()), |
| 74 | reinterpret_cast<char*>(uncompressed_data.data()), compressed_data.size(), header.size); | 74 | reinterpret_cast<char*>(uncompressed_data.data()), |
| 75 | static_cast<int>(compressed_data.size()), header.size); | ||
| 75 | 76 | ||
| 76 | ASSERT_MSG(bytes_uncompressed == header.size && bytes_uncompressed == uncompressed_data.size(), | 77 | ASSERT_MSG(bytes_uncompressed == static_cast<int>(header.size) && |
| 78 | bytes_uncompressed == static_cast<int>(uncompressed_data.size()), | ||
| 77 | "{} != {} != {}", bytes_uncompressed, header.size, uncompressed_data.size()); | 79 | "{} != {} != {}", bytes_uncompressed, header.size, uncompressed_data.size()); |
| 78 | 80 | ||
| 79 | return uncompressed_data; | 81 | return uncompressed_data; |