diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2021-03-20 03:45:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-20 03:45:24 -0400 |
| commit | 963a282dc10036f367a2cb09bb5651aefc73d2a4 (patch) | |
| tree | 1c53ce8e6ac29c138921a6876511313e5b97e74f /ZAPD/Overlays/ZOverlay.cpp | |
| parent | c8e1f444d4ce0f73a2cbed4b3abe9f1c1a496743 (diff) | |
Final Warning pass (#99)
* started on basic type errors
* Done. For now
* remove libgfxd binary
* Fix Clang Warnings
* Fix2
* Fix rollback of #92 and missed warning in ZCutscene.cpp
* ?
* add stdexcept to ZResource
* Fix make clean
* PR fixes
* Fix make file stuff
* Remove many more errors and remove -Wall
* Turns out Globals was used
* Final pass
Co-authored-by: Fig02 <fig02srl@gmail.com>
Diffstat (limited to 'ZAPD/Overlays/ZOverlay.cpp')
| -rw-r--r-- | ZAPD/Overlays/ZOverlay.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ZAPD/Overlays/ZOverlay.cpp b/ZAPD/Overlays/ZOverlay.cpp index 006aa84..6b2564d 100644 --- a/ZAPD/Overlays/ZOverlay.cpp +++ b/ZAPD/Overlays/ZOverlay.cpp @@ -44,7 +44,7 @@ ZOverlay* ZOverlay::FromBuild(string buildPath, string cfgFolderPath) // get the elf files vector<elfio*> readers; - for (int i = 1; i < cfgLines.size(); i++) + for (size_t i = 1; i < cfgLines.size(); i++) { string elfPath = buildPath + "/" + cfgLines[i].substr(0, cfgLines[i].size()-2) + ".o"; elfio* reader = new elfio(); @@ -198,7 +198,7 @@ string ZOverlay::GetSourceOutputCode(const std::string& prefix) output += StringHelper::Sprintf(".word %i\n", entries.size()); - for (int i = 0; i < entries.size(); i++) + for (size_t i = 0; i < entries.size(); i++) { RelocationEntry* reloc = entries[i]; output += StringHelper::Sprintf(".word 0x%08X\n", reloc->CalcRelocationWord()); |
