Skip to content
Snippets Groups Projects
Commit 150b39b8 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

use size_t in loop variable

parent d1c39df9
No related branches found
No related tags found
1 merge request!95Many clang-tidy fixes
......@@ -106,7 +106,7 @@ std::shared_ptr < abstraction::OperationAbstraction > AlgorithmRegistry::getAbst
continue;
 
ext::vector < MatchType > compatibilityVector;
for ( unsigned i = 0; i < paramTypes.size ( ); ++ i ) {
for ( size_t i = 0; i < paramTypes.size ( ); ++ i ) {
MatchType matchType;
if ( std::get < 0 > ( entry->getEntryInfo ( ).getParams ( ) [ i ] ) == paramTypes [ i ] ) {
matchType = MatchType::EXACT;
......@@ -126,7 +126,7 @@ std::shared_ptr < abstraction::OperationAbstraction > AlgorithmRegistry::getAbst
 
// remaining compatible overloads are examined per parameter and the best option is remembered as overload index that achieved it
ext::vector < ext::set < unsigned > > winnerList;
for ( unsigned i = 0; i < paramTypes.size ( ); ++ i ) {
for ( size_t i = 0; i < paramTypes.size ( ); ++ i ) {
ext::set < unsigned > best;
 
unsigned overload = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment