aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/loader
diff options
context:
space:
mode:
authorGravatar bunnei <bunneidev@gmail.com>2015-02-01 00:31:06 -0500
committerGravatar bunnei <bunneidev@gmail.com>2015-02-01 00:31:06 -0500
commitc915d0b727bf0beb22943ccd5b2a6dc7c7ac2803 (patch)
treebeb460de11181a617b910a0a9c272c0427975372 /src/core/loader
parentc8628f5d5611658cf1c769367830bc16d4ecfd5c (diff)
parent5ebf35db9601b12c7142641cc5635da32537171b (diff)
Merge pull request #514 from rohit-n/fix-warnings
Silence a few warnings.
Diffstat (limited to 'src/core/loader')
-rw-r--r--src/core/loader/elf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp
index e7e5df40..773eaf77 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)