Skip to content

Commit

Permalink
Fix windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
larochj committed Dec 13, 2024
1 parent 51d70ea commit 8e37809
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/OpenColorIO/ParseUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ bool StrEqualsCaseIgnore(const std::string & a, const std::string & b)
// The name can be surrounded by quotes to enable name including theses symbols.
static int findEndOfName(const std::string & s, size_t start, char sep)
{
int currentPos = start;
int currentPos = static_cast<int>(start);
int nameEndPos = currentPos;
bool isEndFound = false;

Expand All @@ -704,17 +704,17 @@ static int findEndOfName(const std::string & s, size_t start, char sep)

while( !isEndFound )
{
nameEndPos = s.find_first_of(symbols, currentPos);
if(nameEndPos == (int)std::string::npos)
nameEndPos = static_cast<int>( s.find_first_of( symbols, currentPos ) );
if( nameEndPos == static_cast<int>(std::string::npos) )
{
// We reached the end of the list
nameEndPos = s.size();
nameEndPos = static_cast<int>( s.size() );
isEndFound = true;
}
else if( s[nameEndPos] == '"' )
{
// We found a quote, we need to find the next one
nameEndPos = s.find_first_of("\"", nameEndPos + 1);
nameEndPos = static_cast<int>( s.find_first_of("\"", nameEndPos + 1) );
if(nameEndPos == (int)std::string::npos)
{
// We reached the end of the list instead
Expand Down

0 comments on commit 8e37809

Please sign in to comment.