Skip to content

Commit

Permalink
Fix format warning "format specifies type 'int' but the argument has …
Browse files Browse the repository at this point in the history
…type 'size_t'" (ldc-developers#4535)
  • Loading branch information
JohanEngelen authored Nov 25, 2023
1 parent 8912ede commit fe74d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gen/naked.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ DValue *DtoInlineAsmExpr(const Loc &loc, FuncDeclaration *fd,
const size_t minRequired = n + (returnType->ty == TY::Tvoid ? 0 : 1);
if (cisize < minRequired) {
error(se->loc,
"insufficient number of constraints (%d) for number of additional "
"arguments %s(%d)",
"insufficient number of constraints (%zu) for number of additional "
"arguments %s(%zu)",
cisize, returnType->ty == TY::Tvoid ? "" : "and return type ",
minRequired);
fatal();
Expand Down

0 comments on commit fe74d37

Please sign in to comment.