summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-19 02:29:04 +0200
committerLioncash <mathew1800@gmail.com>2018-07-19 04:27:22 +0200
commit55ab3690435af91589284c3dcac5ef5c1fd944c8 (patch)
tree897296948ab5b5f58f2b52bc95c65142b682c6f1 /src/core
parentloader/nso: Remove unnecessary vector resizes (diff)
downloadyuzu-55ab3690435af91589284c3dcac5ef5c1fd944c8.tar
yuzu-55ab3690435af91589284c3dcac5ef5c1fd944c8.tar.gz
yuzu-55ab3690435af91589284c3dcac5ef5c1fd944c8.tar.bz2
yuzu-55ab3690435af91589284c3dcac5ef5c1fd944c8.tar.lz
yuzu-55ab3690435af91589284c3dcac5ef5c1fd944c8.tar.xz
yuzu-55ab3690435af91589284c3dcac5ef5c1fd944c8.tar.zst
yuzu-55ab3690435af91589284c3dcac5ef5c1fd944c8.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/loader/nro.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp
index a007d3e6e..465b827bb 100644
--- a/src/core/loader/nro.cpp
+++ b/src/core/loader/nro.cpp
@@ -82,7 +82,7 @@ bool AppLoader_NRO::LoadNro(FileSys::VirtualFile file, VAddr load_base) {
if (program_image.size() != PageAlignSize(nro_header.file_size))
return {};
- for (int i = 0; i < nro_header.segments.size(); ++i) {
+ for (std::size_t i = 0; i < nro_header.segments.size(); ++i) {
codeset->segments[i].addr = nro_header.segments[i].offset;
codeset->segments[i].offset = nro_header.segments[i].offset;
codeset->segments[i].size = PageAlignSize(nro_header.segments[i].size);