summaryrefslogtreecommitdiff
path: root/ZAPD/ZAnimation.cpp
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2021-03-19 14:52:04 -0400
committerGitHub <noreply@github.com>2021-03-19 14:52:04 -0400
commit1675f20955dca5f94fdf4b6b1f28532da9c83665 (patch)
treeed80703d09b11b416c0f81cc09708ebcb10d0479 /ZAPD/ZAnimation.cpp
parent50122b91242734ebf893af9f64b674127b73d831 (diff)
Fix all warnings output by Clang++ (#94)
* 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 Co-authored-by: Fig02 <fig02srl@gmail.com>
Diffstat (limited to 'ZAPD/ZAnimation.cpp')
-rw-r--r--ZAPD/ZAnimation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ZAPD/ZAnimation.cpp b/ZAPD/ZAnimation.cpp
index b76087f..99450e3 100644
--- a/ZAPD/ZAnimation.cpp
+++ b/ZAPD/ZAnimation.cpp
@@ -127,7 +127,7 @@ void ZNormalAnimation::ParseRawData()
uint32_t currentPtr = rotationValuesSeg;
// Read the Rotation Values
- for (int i = 0; i < ((rotationIndicesSeg - rotationValuesSeg) / 2); i++)
+ for (uint32_t i = 0; i < ((rotationIndicesSeg - rotationValuesSeg) / 2); i++)
{
rotationValues.push_back(BitConverter::ToInt16BE(data, currentPtr));
currentPtr += 2;
@@ -136,7 +136,7 @@ void ZNormalAnimation::ParseRawData()
currentPtr = rotationIndicesSeg;
// Read the Rotation Indices
- for (int i = 0; i < ((rawDataIndex - rotationIndicesSeg) / 6); i++)
+ for (uint32_t i = 0; i < ((rawDataIndex - rotationIndicesSeg) / 6); i++)
{
rotationIndices.push_back(RotationIndex(BitConverter::ToInt16BE(data, currentPtr), BitConverter::ToInt16BE(data, currentPtr + 2), BitConverter::ToInt16BE(data, currentPtr + 4)));
currentPtr += 6;