Skip to content

Commit 19d0bd6

Browse files
Potential fix for code scanning alert no. 5752: Comparison of narrow type with wide type in loop condition
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 88e2922 commit 19d0bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Common/include/option_structure.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ class COptionWallSpecies : public COptionBase {
13831383
}
13841384

13851385
// Calculate number of species for each marker
1386-
for (unsigned short i = 0; i < marker_indices.size(); i++) {
1386+
for (size_t i = 0; i < marker_indices.size(); i++) {
13871387
unsigned short start_idx = marker_indices[i] + 1; // Start after marker name
13881388
unsigned short end_idx = (i + 1 < marker_indices.size()) ? marker_indices[i + 1] : totalVals;
13891389
unsigned short entries = end_idx - start_idx;

0 commit comments

Comments
 (0)