From 8e3780928a446b299791a30bf489216f169d2ccf Mon Sep 17 00:00:00 2001 From: Jonathan Laroche Date: Fri, 13 Dec 2024 09:20:10 -0500 Subject: [PATCH] Fix windows CI --- src/OpenColorIO/ParseUtils.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/OpenColorIO/ParseUtils.cpp b/src/OpenColorIO/ParseUtils.cpp index 5e5708c19..869c4f1d8 100644 --- a/src/OpenColorIO/ParseUtils.cpp +++ b/src/OpenColorIO/ParseUtils.cpp @@ -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(start); int nameEndPos = currentPos; bool isEndFound = false; @@ -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( s.find_first_of( symbols, currentPos ) ); + if( nameEndPos == static_cast(std::string::npos) ) { // We reached the end of the list - nameEndPos = s.size(); + nameEndPos = static_cast( 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( s.find_first_of("\"", nameEndPos + 1) ); if(nameEndPos == (int)std::string::npos) { // We reached the end of the list instead