Skip to content

Commit ecfca08

Browse files
Fix code scanning alert no. 625: 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 d2e69ea commit ecfca08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SU2_CFD/src/output/COutput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ void COutput::PreprocessVolumeOutput(CConfig *config){
15481548
* object gets an offset so that we know where to find the data in the Local_Data() array.
15491549
* Note that the default offset is -1. An index !=-1 defines this field as part of the output. ---*/
15501550

1551-
for (unsigned short iField_Output = 0; iField_Output < volumeOutput_List.size(); iField_Output++) {
1551+
for (size_t iField_Output = 0; iField_Output < volumeOutput_List.size(); iField_Output++) {
15521552

15531553
const string &fieldReference = volumeOutput_List[iField_Output];
15541554
if (volumeOutput_Map.count(fieldReference) > 0) {

0 commit comments

Comments
 (0)