mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
nso: Silence implicit sign conversion warnings
This commit is contained in:
parent
a25c5b982a
commit
364b950515
|
@ -69,11 +69,13 @@ FileType AppLoader_NSO::IdentifyType(const FileSys::VirtualFile& file) {
|
||||||
static std::vector<u8> DecompressSegment(const std::vector<u8>& compressed_data,
|
static std::vector<u8> DecompressSegment(const std::vector<u8>& compressed_data,
|
||||||
const NsoSegmentHeader& header) {
|
const NsoSegmentHeader& header) {
|
||||||
std::vector<u8> uncompressed_data(header.size);
|
std::vector<u8> uncompressed_data(header.size);
|
||||||
const int bytes_uncompressed = LZ4_decompress_safe(
|
const int bytes_uncompressed =
|
||||||
reinterpret_cast<const char*>(compressed_data.data()),
|
LZ4_decompress_safe(reinterpret_cast<const char*>(compressed_data.data()),
|
||||||
reinterpret_cast<char*>(uncompressed_data.data()), compressed_data.size(), header.size);
|
reinterpret_cast<char*>(uncompressed_data.data()),
|
||||||
|
static_cast<int>(compressed_data.size()), header.size);
|
||||||
|
|
||||||
ASSERT_MSG(bytes_uncompressed == header.size && bytes_uncompressed == uncompressed_data.size(),
|
ASSERT_MSG(bytes_uncompressed == static_cast<int>(header.size) &&
|
||||||
|
bytes_uncompressed == static_cast<int>(uncompressed_data.size()),
|
||||||
"{} != {} != {}", bytes_uncompressed, header.size, uncompressed_data.size());
|
"{} != {} != {}", bytes_uncompressed, header.size, uncompressed_data.size());
|
||||||
|
|
||||||
return uncompressed_data;
|
return uncompressed_data;
|
||||||
|
|
Loading…
Reference in a new issue