diff options
| author | 2015-01-30 19:20:34 +0000 | |
|---|---|---|
| committer | 2015-01-30 19:20:34 +0000 | |
| commit | 5ebf35db9601b12c7142641cc5635da32537171b (patch) | |
| tree | e60f7703e567a79cd928b4b6aa2800f5221bd248 /src/core/loader/elf.cpp | |
| parent | Merge pull request #503 from yuriks/kernel-lifetime4 (diff) | |
| download | yuzu-5ebf35db9601b12c7142641cc5635da32537171b.tar.gz yuzu-5ebf35db9601b12c7142641cc5635da32537171b.tar.xz yuzu-5ebf35db9601b12c7142641cc5635da32537171b.zip | |
Silence a few warnings.
Diffstat (limited to 'src/core/loader/elf.cpp')
| -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: | |||
| 212 | return GetPtr(segments[segment].p_offset); | 212 | return GetPtr(segments[segment].p_offset); |
| 213 | } | 213 | } |
| 214 | u32 GetSectionAddr(SectionID section) const { return sectionAddrs[section]; } | 214 | u32 GetSectionAddr(SectionID section) const { return sectionAddrs[section]; } |
| 215 | int GetSectionSize(SectionID section) const { return sections[section].sh_size; } | 215 | unsigned int GetSectionSize(SectionID section) const { return sections[section].sh_size; } |
| 216 | SectionID GetSectionByName(const char *name, int firstSection = 0) const; //-1 for not found | 216 | SectionID GetSectionByName(const char *name, int firstSection = 0) const; //-1 for not found |
| 217 | 217 | ||
| 218 | bool DidRelocate() const { | 218 | bool DidRelocate() const { |
| @@ -298,7 +298,7 @@ bool ElfReader::LoadSymbols() { | |||
| 298 | 298 | ||
| 299 | //We have a symbol table! | 299 | //We have a symbol table! |
| 300 | Elf32_Sym* symtab = (Elf32_Sym *)(GetSectionDataPtr(sec)); | 300 | Elf32_Sym* symtab = (Elf32_Sym *)(GetSectionDataPtr(sec)); |
| 301 | int numSymbols = sections[sec].sh_size / sizeof(Elf32_Sym); | 301 | unsigned int numSymbols = sections[sec].sh_size / sizeof(Elf32_Sym); |
| 302 | for (unsigned sym = 0; sym < numSymbols; sym++) { | 302 | for (unsigned sym = 0; sym < numSymbols; sym++) { |
| 303 | int size = symtab[sym].st_size; | 303 | int size = symtab[sym].st_size; |
| 304 | if (size == 0) | 304 | if (size == 0) |