Browse Source

Merge pull request #76 from jhasse/sign-compare

Fix sign comparision in DataQuery.cpp
Michael R. P. Ragazzon 6 years ago
parent
commit
48fd8b341c
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
 bool DataQuery::IsFieldSet(const Rml::Core::String& field) const
 {
 {
 	FieldIndices::const_iterator itr = field_indices.find(field);
 	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;
 		return false;
 	}
 	}