X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fexamples_compile.c;h=4f2d2c8a99189b058e7610b101cbcd264dca186c;hp=b1798c937f36a4fb14205816183c91a1566b7d97;hb=afcb4f4dd0d88c699d816883d62c8cff5f37ca0d;hpb=c8c0c25c7c34654345458b7ca7fdee46f82d09ca diff --git a/tools/ccanlint/tests/examples_compile.c b/tools/ccanlint/tests/examples_compile.c index b1798c93..4f2d2c8a 100644 --- a/tools/ccanlint/tests/examples_compile.c +++ b/tools/ccanlint/tests/examples_compile.c @@ -156,7 +156,7 @@ static char *add_func(char *others, const char *line) } return talloc_asprintf_append(others, "printf(\"%%p\", %.*s);\n", - end - p + 1, p); + (unsigned)(end - p + 1), p); } static void strip_leading_whitespace(char **lines)