From a9da6eec54d970ac5b50f0acc2125d64b5294e36 Mon Sep 17 00:00:00 2001 From: ryfactor <6005108+ryfactor@users.noreply.github.com> Date: Mon, 15 Dec 2025 17:39:54 +1300 Subject: [PATCH] Match type width in score loop Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- FeLib/Source/hscore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FeLib/Source/hscore.cpp b/FeLib/Source/hscore.cpp index f0b6c3a60..bf6e1c363 100644 --- a/FeLib/Source/hscore.cpp +++ b/FeLib/Source/hscore.cpp @@ -103,7 +103,7 @@ void highscore::Save(cfestring& File) const { outputfile HighScore(File.IsEmpty() ? DefaultFile : File); long CheckSum = HIGH_SCORE_VERSION + LastAdd; - for(ushort c = 0; c < Score.size(); ++c) + for(size_t c = 0; c < Score.size(); ++c) { CheckSum += Score[c] + Entry[c].GetCheckSum() + RandomID[c]; }