summaryrefslogtreecommitdiff
path: root/src/core/loader
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-04-17 19:26:48 -0400
committerLioncash <mathew1800@gmail.com>2020-04-17 19:26:50 -0400
commit441a2812ed52d3f3ac868f6c7ec6ea003dca60e7 (patch)
treea4e9c7e938dc0753c800653add9e2d3a5d508b88 /src/core/loader
parentb8f5c71f2d7f819821acf036175cce65ab1ae12c (diff)
loader/nso: Resolve moves not occurring in DecompressSegment
Given the std::vector was const, an automatic move out of the function could not occur. We can allow automatic return value optimizations to occur by making the buffer non-const.
Diffstat (limited to 'src/core/loader')
-rw-r--r--src/core/loader/nso.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp
index 612ff9bf6..575330a86 100644
--- a/src/core/loader/nso.cpp
+++ b/src/core/loader/nso.cpp
@@ -37,7 +37,7 @@ static_assert(sizeof(MODHeader) == 0x1c, "MODHeader has incorrect size.");
std::vector<u8> DecompressSegment(const std::vector<u8>& compressed_data,
const NSOSegmentHeader& header) {
- const std::vector<u8> uncompressed_data =
+ std::vector<u8> uncompressed_data =
Common::Compression::DecompressDataLZ4(compressed_data, header.size);
ASSERT_MSG(uncompressed_data.size() == header.size, "{} != {}", header.size,