src: fix build warning on i686
Florian Westphal
maintainerPATCH 1/1 src: fix build warning on i686
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 <[email protected]>
--- src/datatype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/datatype.c +1 -1
@@ -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);
Signature · 1 line
2.9.3
Quoted 3 lines · Florian Westphal
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 <[email protected]>