From: José Fonseca Date: Mon, 14 Jun 2010 16:11:21 +0000 (+0100) Subject: util: Use int type for format field width. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=27fafa2587287562f58de6f00799d7a6d2adf9b2;p=mesa.git util: Use int type for format field width. As suggested by gcc warning. --- diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c index 954f5706ef3..5e373ff24c4 100644 --- a/src/gallium/auxiliary/util/u_debug.c +++ b/src/gallium/auxiliary/util/u_debug.c @@ -195,7 +195,7 @@ debug_get_flags_option(const char *name, namealign = MAX2(namealign, strlen(flags->name)); for (flags = orig; flags->name; ++flags) debug_printf("| %*s [0x%0*lx]%s%s\n", namealign, flags->name, - sizeof(unsigned long)*CHAR_BIT/4, flags->value, + (int)sizeof(unsigned long)*CHAR_BIT/4, flags->value, flags->desc ? " " : "", flags->desc ? flags->desc : ""); } else {