From 49f6ef09b077de68da96a4380902e54425db1c06 Mon Sep 17 00:00:00 2001 From: Alex Foster <123afoster@gmail.com> Date: Thu, 19 Oct 2023 22:28:48 -0700 Subject: [PATCH] remove unnecessary casts in skelzonekey::includes --- src/engine/model/hitzone.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/model/hitzone.cpp b/src/engine/model/hitzone.cpp index 6e8e6112a..3cedcd31f 100644 --- a/src/engine/model/hitzone.cpp +++ b/src/engine/model/hitzone.cpp @@ -576,8 +576,8 @@ skelzonekey::skelzonekey(const skelmodel::skelmesh *m, const skelmodel::tri &t) bool skelzonekey::includes(const skelzonekey &o) const { - int j = 0; - for(int i = 0; i < static_cast(sizeof(bones)); ++i) + size_t j = 0; + for(size_t i = 0; i < sizeof(bones); ++i) { if(bones[i] > o.bones[j]) { @@ -588,7 +588,7 @@ bool skelzonekey::includes(const skelzonekey &o) const j++; } } - return j < static_cast(sizeof(bones)) ? o.bones[j] == 0xFF : blend < 0 || blend == o.blend; + return j < sizeof(bones) ? o.bones[j] == 0xFF : blend < 0 || blend == o.blend; } void skelzonekey::subtract(const skelzonekey &o)