Try to disambiguate between overloads on Mac
authorAaron Puchert <aaron.puchert@sap.com>
Fri, 13 May 2022 14:26:31 +0000 (16:26 +0200)
committerAaron Puchert <aaron.puchert@sap.com>
Fri, 13 May 2022 14:29:02 +0000 (16:29 +0200)
Presumably Mac has a different understanding of how long `long` is.
Should fix a build error introduced by D125429 that's not visible on
other architectures.

clang/lib/AST/CommentParser.cpp

index 7bac1fb..d78b3ac 100644 (file)
@@ -414,7 +414,7 @@ InlineCommandComment *Parser::parseInlineCommand() {
   if (Args.size() < Info->NumArgs) {
     Diag(CommandTok.getEndLocation().getLocWithOffset(1),
          diag::warn_doc_inline_command_not_enough_arguments)
-        << CommandTok.is(tok::at_command) << Info->Name << Args.size()
+        << CommandTok.is(tok::at_command) << Info->Name << (uint64_t)Args.size()
         << Info->NumArgs
         << SourceRange(CommandTok.getLocation(), CommandTok.getEndLocation());
   }