diff options
author | Carlos Maniero <carlosmaniero@gmail.com> | 2023-04-14 13:01:27 -0300 |
---|---|---|
committer | Johnny Richard <johnny@johnnyrichard.com> | 2023-04-14 18:08:12 +0200 |
commit | ce1ed0fa09f42400ff2803426c0d7b3c881b2046 (patch) | |
tree | 2a93029cfce4438182e5e2de49c8235fcf26182a | |
parent | ac701605347e913b19ef8bd7f11039162e504f35 (diff) |
lexer: Fix string format warning
warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has
type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
Signed-off-by: Carlos Maniero <carlosmaniero@gmail.com>
-rw-r--r-- | pipac.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -240,7 +240,7 @@ main(int argc, char **argv) lexer_t lexer; lexer_init(&lexer, filepath); - printf("[INFO]: %d bytes loaded [filename='%s']\n", lexer.srclen, lexer.filepath); + printf("[INFO]: %ld bytes loaded [filename='%s']\n", lexer.srclen, lexer.filepath); token_t token; for (lexer_next_token(&lexer, &token); token.kind != TOKEN_EOF; lexer_next_token(&lexer, &token)) { |