aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/nca_metadata.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-10-13 08:10:50 -0400
committerLioncash <mathew1800@gmail.com>2020-10-13 13:16:49 -0400
commit16de0a6a96cae65b58c323f8e8d75ddc6f8462f0 (patch)
tree9565ff464bbb9e5a0aa66e6e310098314e88d019 /src/core/file_sys/nca_metadata.cpp
parent77bf864c9406a14d38a8b17c0d9ce144b616c2fd (diff)
core/CMakeLists: Make some warnings errors
Makes our error coverage a little more consistent across the board by applying it to Linux side of things as well. This also makes it more consistent with the warning settings in other libraries in the project. This also updates httplib to 0.7.9, as there are several warning cleanups made that allow us to enable several warnings as errors.
Diffstat (limited to 'src/core/file_sys/nca_metadata.cpp')
-rw-r--r--src/core/file_sys/nca_metadata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/file_sys/nca_metadata.cpp b/src/core/file_sys/nca_metadata.cpp
index 2d1476e3aa..3596541b23 100644
--- a/src/core/file_sys/nca_metadata.cpp
+++ b/src/core/file_sys/nca_metadata.cpp
@@ -108,7 +108,7 @@ std::vector<u8> CNMT::Serialize() const {
memcpy(out.data() + sizeof(CNMTHeader), &opt_header, sizeof(OptionalHeader));
}
- auto offset = header.table_offset;
+ u64_le offset = header.table_offset;
for (const auto& rec : content_records) {
memcpy(out.data() + offset + sizeof(CNMTHeader), &rec, sizeof(ContentRecord));