Loader: Fix variable type and remove unused variable
This commit is contained in:
parent
a1f08788d9
commit
62c2a262b2
|
@ -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;
|
||||
|
|
Reference in New Issue