Browse Source

Fix sign comparision in DataQuery.cpp

Source/Controls/DataQuery.cpp:140:50: warning: comparison of integer expressions of different signedness: 'const long long unsigned int' and 'int' [-Wsign-compare]
  140 |  if (itr == field_indices.end() || (*itr).second >= (int)rows[current_row].size())
      |                                    ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jan Niklas Hasse 5 years ago
parent
commit
455f11a280
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Controls/DataQuery.cpp

+ 1 - 1
Source/Controls/DataQuery.cpp

@@ -137,7 +137,7 @@ bool DataQuery::NextRow()
 bool DataQuery::IsFieldSet(const Rml::Core::String& field) const
 {
 	FieldIndices::const_iterator itr = field_indices.find(field);
-	if (itr == field_indices.end() || (*itr).second >= (int)rows[current_row].size())
+	if (itr == field_indices.end() || (*itr).second >= rows[current_row].size())
 	{
 		return false;
 	}