@@ -1218,7 +1218,7 @@ struct Preprocessor::Private {
12181218 [[nodiscard]] auto unaryExpression (TokList *&ts) -> long;
12191219 [[nodiscard]] auto primaryExpression (TokList *&ts) -> long;
12201220
1221- [[nodiscard]] auto parseArguments (TokList *ts, int formalCount,
1221+ [[nodiscard]] auto parseArguments (TokList *ts, std:: size_t formalCount,
12221222 bool ignoreComma = false )
12231223 -> std::tuple<std::vector<TokRange>, TokList *, const Hideset *>;
12241224
@@ -1241,8 +1241,8 @@ struct Preprocessor::ParseArguments {
12411241 Private &d;
12421242
12431243 template <std::sentinel_for<TokIterator> S>
1244- auto operator ()(TokIterator it, S last, int formalCount, bool ignoreComma)
1245- -> std::optional<Result> {
1244+ auto operator ()(TokIterator it, S last, std:: size_t formalCount,
1245+ bool ignoreComma) -> std::optional<Result> {
12461246 if (!cxx::lookat (it, last, TokenKind::T_LPAREN)) {
12471247 cxx_runtime_error (" expected '('" );
12481248 return std::nullopt ;
@@ -1381,7 +1381,7 @@ void PendingFileContent::setContent(std::optional<std::string> content) const {
13811381 sourceFile->headerProtection = d->checkHeaderProtection (sourceFile->tokens );
13821382
13831383 if (sourceFile->headerProtection ) {
1384- sourceFile->headerProtectionLevel = d->evaluating_ .size ();
1384+ sourceFile->headerProtectionLevel = int ( d->evaluating_ .size () );
13851385
13861386 d->ifndefProtectedFiles_ .insert_or_assign (
13871387 sourceFile->fileName , sourceFile->headerProtection ->tok ->text );
@@ -1871,8 +1871,8 @@ auto Preprocessor::Private::parseDirective(SourceFile *source, TokList *start)
18711871
18721872 dependencies_.clear ();
18731873
1874- const auto directiveKind = classifyDirective (directive-> tok -> text . data (),
1875- directive->tok ->text .length ());
1874+ const auto directiveKind = classifyDirective (
1875+ directive-> tok -> text . data (), int ( directive->tok ->text .length () ));
18761876
18771877 TokList *ts = directive->next ;
18781878
@@ -2706,7 +2706,7 @@ auto Preprocessor::Private::instantiate(TokList *ts, const Hideset *hideset)
27062706 return ts;
27072707}
27082708
2709- auto Preprocessor::Private::parseArguments (TokList *ts, int formalCount,
2709+ auto Preprocessor::Private::parseArguments (TokList *ts, std:: size_t formalCount,
27102710 bool ignoreComma)
27112711 -> std::tuple<std::vector<TokRange>, TokList *, const Hideset *> {
27122712 assert (lookat (ts, TokenKind::T_IDENTIFIER, TokenKind::T_LPAREN));
0 commit comments