Skip to content

Commit

Permalink
minor tweak for variable type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed May 15, 2024
1 parent cf36863 commit 1b5e789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/util_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ std::string extract_filepath_file( const std::string & filepath )
// normalize for searching, e.g., \ replaced with /
string normalize = normalize_directory_separator( trim(filepath) );
// look for separator from the right
long i = normalize.rfind( path_separator );
size_t i = normalize.rfind( path_separator );
// if not separator found, return the path unchanged
if( i == std::string::npos ) return filepath;

Expand Down Expand Up @@ -974,7 +974,7 @@ std::string normalize_directory_separator( const std::string & filepath )
// make a copy
std::string new_filepath = filepath;
// string length
long len = new_filepath.size();
size_t len = new_filepath.size();
// iterate over characters
for( long i = 0; i < len; i++ )
{
Expand Down

0 comments on commit 1b5e789

Please sign in to comment.