[command-parser] Add int cast to printf to %*s arg

This fixes a compiler warning.
This commit is contained in:
Ray Strode 2009-08-05 22:14:35 -04:00
parent 8753c3bbac
commit 283215be39

View file

@ -245,7 +245,7 @@ ply_command_parser_get_help_string (ply_command_parser_t *parser)
ply_buffer_append (buffer, " %s%*s %s\n",
command->name,
longest_subcommand + 2 - strlen (command->name),
(int) (longest_subcommand + 2 - strlen (command->name)),
"",
command->description);