Skip to content

Commit

Permalink
Merge pull request #622 from dawgfoto/printfWarning
Browse files Browse the repository at this point in the history
printf %j needs explicit cast
  • Loading branch information
WalterBright committed Jan 15, 2012
2 parents 29daca6 + eb19602 commit bda7973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lexer.c
Expand Up @@ -121,11 +121,11 @@ const char *Token::toChars()
break;

case TOKint64v:
sprintf(buffer,"%jdL",int64value);
sprintf(buffer,"%jdL",(intmax_t)int64value);
break;

case TOKuns64v:
sprintf(buffer,"%juUL",uns64value);
sprintf(buffer,"%juUL",(uintmax_t)uns64value);
break;

#if IN_GCC
Expand Down

0 comments on commit bda7973

Please sign in to comment.