diff options
author | Lioncash <mathew1800@gmail.com> | 2016-01-25 08:34:37 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2016-01-25 08:36:57 +0100 |
commit | a89e32b15740795bbbf03f3f0b677eb7996ef9a1 (patch) | |
tree | e7c8760765d4396c3680cb874ae17f60c8ff49d9 /src/core/loader | |
parent | Merge pull request #1371 from lioncash/return (diff) | |
download | yuzu-a89e32b15740795bbbf03f3f0b677eb7996ef9a1.tar yuzu-a89e32b15740795bbbf03f3f0b677eb7996ef9a1.tar.gz yuzu-a89e32b15740795bbbf03f3f0b677eb7996ef9a1.tar.bz2 yuzu-a89e32b15740795bbbf03f3f0b677eb7996ef9a1.tar.lz yuzu-a89e32b15740795bbbf03f3f0b677eb7996ef9a1.tar.xz yuzu-a89e32b15740795bbbf03f3f0b677eb7996ef9a1.tar.zst yuzu-a89e32b15740795bbbf03f3f0b677eb7996ef9a1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/loader/elf.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp index 5d7264f12..69df94324 100644 --- a/src/core/loader/elf.cpp +++ b/src/core/loader/elf.cpp @@ -250,7 +250,7 @@ const char *ElfReader::GetSectionName(int section) const { return nullptr; int name_offset = sections[section].sh_name; - const char* ptr = (char*)GetSectionDataPtr(header->e_shstrndx); + const char* ptr = reinterpret_cast<const char*>(GetSectionDataPtr(header->e_shstrndx)); if (ptr) return ptr + name_offset; @@ -347,10 +347,10 @@ bool ElfReader::LoadSymbols() { SectionID sec = GetSectionByName(".symtab"); if (sec != -1) { int stringSection = sections[sec].sh_link; - const char *stringBase = (const char *)GetSectionDataPtr(stringSection); + const char *stringBase = reinterpret_cast<const char*>(GetSectionDataPtr(stringSection)); //We have a symbol table! - Elf32_Sym* symtab = (Elf32_Sym *)(GetSectionDataPtr(sec)); + const Elf32_Sym* symtab = reinterpret_cast<const Elf32_Sym*>(GetSectionDataPtr(sec)); unsigned int numSymbols = sections[sec].sh_size / sizeof(Elf32_Sym); for (unsigned sym = 0; sym < numSymbols; sym++) { int size = symtab[sym].st_size; |