Browse Source

Fix compilation when return type of `find_first_of` is not `size_t`. (#350)

Eugene Kozlov 3 years ago
parent
commit
54d549bba8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Core/StyleSheetParser.cpp

+ 1 - 1
Source/Core/StyleSheetParser.cpp

@@ -965,7 +965,7 @@ StyleSheetNode* StyleSheetParser::ImportProperties(StyleSheetNode* node, const S
 					AttributeSelector attribute;
 					AttributeSelector attribute;
 
 
 					static const String attribute_operators = "=~|^$*]";
 					static const String attribute_operators = "=~|^$*]";
-					size_t i_cursor = Math::Min(rule.find_first_of(attribute_operators, i_attr_begin), i_attr_end);
+					size_t i_cursor = Math::Min(static_cast<size_t>(rule.find_first_of(attribute_operators, i_attr_begin)), i_attr_end);
 					attribute.name = rule.substr(i_attr_begin, i_cursor - i_attr_begin);
 					attribute.name = rule.substr(i_attr_begin, i_cursor - i_attr_begin);
 
 
 					if (i_cursor < i_attr_end)
 					if (i_cursor < i_attr_end)