From 963a282dc10036f367a2cb09bb5651aefc73d2a4 Mon Sep 17 00:00:00 2001 From: louist103 <35883445+louist103@users.noreply.github.com> Date: Sat, 20 Mar 2021 03:45:24 -0400 Subject: 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 --- ZAPD/ZAnimation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ZAPD/ZAnimation.cpp') diff --git a/ZAPD/ZAnimation.cpp b/ZAPD/ZAnimation.cpp index 99450e3..614dcd7 100644 --- a/ZAPD/ZAnimation.cpp +++ b/ZAPD/ZAnimation.cpp @@ -72,7 +72,7 @@ std::string ZNormalAnimation::GetSourceOutputCode(const std::string& prefix) const int lineLength = 14; const int offset = 0; - for (int i = 0; i < rotationValues.size(); i++) + for (size_t i = 0; i < rotationValues.size(); i++) { valuesStr += StringHelper::Sprintf("0x%04X, ", rotationValues[i]); @@ -80,7 +80,7 @@ std::string ZNormalAnimation::GetSourceOutputCode(const std::string& prefix) valuesStr += "\n "; } - for (int i = 0; i < rotationIndices.size(); i++) + for (size_t i = 0; i < rotationIndices.size(); i++) { indicesStr += StringHelper::Sprintf(" { 0x%04X, 0x%04X, 0x%04X },", rotationIndices[i].x, rotationIndices[i].y, rotationIndices[i].z); -- cgit v1.2.3