@@ -425,9 +425,9 @@ ParsedArguments ParseCallParamsImpl(const T& args, const CallParams& params, boo
425425 ++ argIdx;
426426 }
427427
428- int startPosArg = firstMandatoryIdx == -1 ? 0 : firstMandatoryIdx;
429- int curPosArg = startPosArg;
430- int eatenPosArgs = 0 ;
428+ std:: size_t startPosArg = firstMandatoryIdx == -1 ? 0 : firstMandatoryIdx;
429+ std:: size_t curPosArg = startPosArg;
430+ std:: size_t eatenPosArgs = 0 ;
431431
432432 // Determine the range for positional arguments scanning
433433 bool isFirstTime = true ;
@@ -445,7 +445,7 @@ ParsedArguments ParseCallParamsImpl(const T& args, const CallParams& params, boo
445445 int prevNotFound = argsInfo[startPosArg].prevNotFound ;
446446 if (prevNotFound != -1 )
447447 {
448- startPosArg = prevNotFound;
448+ startPosArg = static_cast <std:: size_t >( prevNotFound) ;
449449 }
450450 else if (curPosArg == args.size ())
451451 {
@@ -456,20 +456,20 @@ ParsedArguments ParseCallParamsImpl(const T& args, const CallParams& params, boo
456456 int nextPosArg = argsInfo[curPosArg].nextNotFound ;
457457 if (nextPosArg == -1 )
458458 break ;
459- curPosArg = nextPosArg;
459+ curPosArg = static_cast <std:: size_t >( nextPosArg) ;
460460 }
461461 }
462462
463463 // Map positional params to the desired arguments
464- int curArg = startPosArg;
465- for (int idx = 0 ; idx < eatenPosArgs && curArg != -1 ; ++ idx, curArg = argsInfo[curArg].nextNotFound )
464+ auto curArg = static_cast < int >( startPosArg) ;
465+ for (std:: size_t idx = 0 ; idx < eatenPosArgs && curArg != -1 ; ++ idx, curArg = argsInfo[curArg].nextNotFound )
466466 {
467467 result.args [argsInfo[curArg].info ->name ] = params.posParams [idx];
468468 argsInfo[curArg].state = Positional;
469469 }
470470
471471 // Fill default arguments (if missing) and check for mandatory
472- for (int idx = 0 ; idx < argsInfo.size (); ++ idx)
472+ for (std:: size_t idx = 0 ; idx < argsInfo.size (); ++ idx)
473473 {
474474 auto & argInfo = argsInfo[idx];
475475 switch (argInfo.state )
0 commit comments