yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Loader: Fix variable type and remove unused variable

This commit is contained in:
Yuri Kunde Schlesner 2015-07-13 20:43:51 -03:00
parent a1f08788d9
commit 62c2a262b2
1 changed files with 1 additions and 2 deletions

View File

@ -273,7 +273,6 @@ SharedPtr<CodeSet> ElfReader::LoadInto(u32 vaddr) {
LOG_DEBUG(Loader, "%i segments:", header->e_phnum); LOG_DEBUG(Loader, "%i segments:", header->e_phnum);
// First pass : Get the bits into RAM // First pass : Get the bits into RAM
u32 segment_addr[32];
u32 base_addr = relocate ? vaddr : 0; u32 base_addr = relocate ? vaddr : 0;
u32 total_image_size = 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. // Reset read pointer in case this file has been read before.
file.Seek(0, SEEK_SET); 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]); std::unique_ptr<u8[]> buffer(new u8[size]);
if (file.ReadBytes(&buffer[0], size) != size) if (file.ReadBytes(&buffer[0], size) != size)
return ResultStatus::Error; return ResultStatus::Error;