Skip to content

Commit 40e1d97

Browse files
Fix code scanning alert no. 5107: 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 488efa0 commit 40e1d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SU2_CFD/include/solvers/CFVMFlowSolverBase.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,7 @@ class CFVMFlowSolverBase : public CSolver {
22302230
else if (val_source.size() > nVar)
22312231
SU2_MPI::Error("Out-of-bounds source size used on solver.", CURRENT_FUNCTION);
22322232
else {
2233-
for (unsigned short iVar=0; iVar < val_source.size(); iVar++)
2233+
for (size_t iVar=0; iVar < val_source.size(); iVar++)
22342234
PointSource[val_point][iVar] = val_source[iVar];
22352235
}
22362236
}

0 commit comments

Comments
 (0)