aboutsummaryrefslogtreecommitdiff
path: root/src/core/loader/nso.cpp
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
commitd0569a0865e3cc594ef4ad0bbfadbcfb705ad6bf (patch)
treea4e9c7e938dc0753c800653add9e2d3a5d508b88 /src/core/loader/nso.cpp
parent66cb8ee64fd3fe1455357c21202ac9cdc734ca6f (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/nso.cpp')
-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 612ff9bf69..575330a86d 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,