diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-07-14 01:43:51 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-07-14 02:10:13 +0200 |
commit | 62c2a262b2992ed5f56db098b2009ec1a20480bf (patch) | |
tree | 8ebb0e2a0d5fedcb259c6831dec3f60c83cc9836 /src/core/loader | |
parent | Archive: Correct a few incorrect types in function signatures (diff) | |
download | yuzu-62c2a262b2992ed5f56db098b2009ec1a20480bf.tar yuzu-62c2a262b2992ed5f56db098b2009ec1a20480bf.tar.gz yuzu-62c2a262b2992ed5f56db098b2009ec1a20480bf.tar.bz2 yuzu-62c2a262b2992ed5f56db098b2009ec1a20480bf.tar.lz yuzu-62c2a262b2992ed5f56db098b2009ec1a20480bf.tar.xz yuzu-62c2a262b2992ed5f56db098b2009ec1a20480bf.tar.zst yuzu-62c2a262b2992ed5f56db098b2009ec1a20480bf.zip |
Diffstat (limited to 'src/core/loader')
-rw-r--r-- | src/core/loader/elf.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp index 09a2275a1..5d7264f12 100644 --- a/src/core/loader/elf.cpp +++ b/src/core/loader/elf.cpp @@ -273,7 +273,6 @@ SharedPtr<CodeSet> ElfReader::LoadInto(u32 vaddr) { LOG_DEBUG(Loader, "%i segments:", header->e_phnum); // First pass : Get the bits into RAM - u32 segment_addr[32]; u32 base_addr = relocate ? vaddr : 0; u32 total_image_size = 0; @@ -398,7 +397,7 @@ ResultStatus AppLoader_ELF::Load() { // Reset read pointer in case this file has been read before. file.Seek(0, SEEK_SET); - u32 size = static_cast<u32>(file.GetSize()); + size_t size = file.GetSize(); std::unique_ptr<u8[]> buffer(new u8[size]); if (file.ReadBytes(&buffer[0], size) != size) return ResultStatus::Error; |