mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
Global: Fix some type comparison/shadow warnings.
This commit is contained in:
1 parent
9a40a5971b
commit
0e2a586c1b
8 files changed
+20
-20
No files matched your search
@@ -29,7 +29,7 @@ const char *ElfReader::GetSectionName(int section) const {
|
||||
return nullptr;
|
||||
|
||||
int nameOffset = sections[section].sh_name;
|
||||
if (nameOffset < 0 || nameOffset >= size_) {
|
||||
if (nameOffset < 0 || (size_t)nameOffset >= size_) {
|
||||
ERROR_LOG(LOADER, "ELF: Bad name offset %d in section %d (max = %d)", nameOffset, section, (int)size_);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user