Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix windows CI
Browse files Browse the repository at this point in the history
larochj committed Dec 13, 2024
1 parent 51d70ea commit 8f9854d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OpenColorIO/ParseUtils.cpp
Original file line number Diff line number Diff line change
@@ -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;

@@ -704,8 +704,8 @@ 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 = s.find_first_of( symbols, static_cast<size_t>(currentPos) );
if(nameEndPos == static_cast<int>(std::string::npos)
{
// We reached the end of the list
nameEndPos = s.size();

0 comments on commit 8f9854d

Please sign in to comment.