diff options
author | Rohit Nirmal <rohitnirmal9@gmail.com> | 2015-01-30 20:20:34 +0100 |
---|---|---|
committer | Rohit Nirmal <rohitnirmal9@gmail.com> | 2015-01-30 20:20:34 +0100 |
commit | 5ebf35db9601b12c7142641cc5635da32537171b (patch) | |
tree | e60f7703e567a79cd928b4b6aa2800f5221bd248 /src/core/loader/elf.cpp | |
parent | Merge pull request #503 from yuriks/kernel-lifetime4 (diff) | |
download | yuzu-5ebf35db9601b12c7142641cc5635da32537171b.tar yuzu-5ebf35db9601b12c7142641cc5635da32537171b.tar.gz yuzu-5ebf35db9601b12c7142641cc5635da32537171b.tar.bz2 yuzu-5ebf35db9601b12c7142641cc5635da32537171b.tar.lz yuzu-5ebf35db9601b12c7142641cc5635da32537171b.tar.xz yuzu-5ebf35db9601b12c7142641cc5635da32537171b.tar.zst yuzu-5ebf35db9601b12c7142641cc5635da32537171b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/loader/elf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp index e7e5df408..773eaf771 100644 --- a/src/core/loader/elf.cpp +++ b/src/core/loader/elf.cpp @@ -212,7 +212,7 @@ public: return GetPtr(segments[segment].p_offset); } u32 GetSectionAddr(SectionID section) const { return sectionAddrs[section]; } - int GetSectionSize(SectionID section) const { return sections[section].sh_size; } + unsigned int GetSectionSize(SectionID section) const { return sections[section].sh_size; } SectionID GetSectionByName(const char *name, int firstSection = 0) const; //-1 for not found bool DidRelocate() const { @@ -298,7 +298,7 @@ bool ElfReader::LoadSymbols() { //We have a symbol table! Elf32_Sym* symtab = (Elf32_Sym *)(GetSectionDataPtr(sec)); - int numSymbols = sections[sec].sh_size / sizeof(Elf32_Sym); + unsigned int numSymbols = sections[sec].sh_size / sizeof(Elf32_Sym); for (unsigned sym = 0; sym < numSymbols; sym++) { int size = symtab[sym].st_size; if (size == 0) |