diff options
| author | 2015-02-01 00:31:06 -0500 | |
|---|---|---|
| committer | 2015-02-01 00:31:06 -0500 | |
| commit | c915d0b727bf0beb22943ccd5b2a6dc7c7ac2803 (patch) | |
| tree | beb460de11181a617b910a0a9c272c0427975372 /src/core/loader/elf.cpp | |
| parent | Merge pull request #525 from lioncash/armwarn (diff) | |
| parent | Silence a few warnings. (diff) | |
| download | yuzu-c915d0b727bf0beb22943ccd5b2a6dc7c7ac2803.tar.gz yuzu-c915d0b727bf0beb22943ccd5b2a6dc7c7ac2803.tar.xz yuzu-c915d0b727bf0beb22943ccd5b2a6dc7c7ac2803.zip | |
Merge pull request #514 from rohit-n/fix-warnings
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) |