]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/examples_compile.c
tools: fixes for 64-bit.
[ccan] / tools / ccanlint / tests / examples_compile.c
index b1798c937f36a4fb14205816183c91a1566b7d97..4f2d2c8a99189b058e7610b101cbcd264dca186c 100644 (file)
@@ -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)