Skip to content

Commit 078bd4a

Browse files
Potential fix for code scanning alert no. 5430: Comparison result is always the same
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent e60eb4c commit 078bd4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SU2_CFD/src/solvers/CSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3598,7 +3598,7 @@ void CSolver::LoadInletProfile(CGeometry **geometry,
35983598

35993599
/*--- strip the .dat (or other) extension from the inlet_profile.dat filename. ---*/
36003600

3601-
unsigned short lastindex = profile_filename.find_last_of('.');
3601+
std::string::size_type lastindex = profile_filename.find_last_of('.');
36023602
string ext = "";
36033603

36043604
/*--- Get the extension, including the dot. ---*/

0 commit comments

Comments
 (0)