From cd3877cd4a7c4943dc29c274366795f02c42feb0 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Tue, 4 Apr 2017 20:46:01 +0200 Subject: src: fix build warning on i686 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit datatype.c:182:13: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=] printf("%lu", val); Signed-off-by: Florian Westphal Acked-by: Pablo Neira Ayuso --- src/datatype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/datatype.c b/src/datatype.c index 06a045bc..d2eed769 100644 --- a/src/datatype.c +++ b/src/datatype.c @@ -179,7 +179,7 @@ void symbolic_constant_print(const struct symbol_table *tbl, printf("\""); if (numeric_output > NUMERIC_ALL) - printf("%lu", val); + printf("%"PRIu64"", val); else printf("%s", s->identifier); -- cgit v1.2.3