util: Use int type for format field width.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 14 Jun 2010 16:11:21 +0000 (17:11 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 14 Jun 2010 16:11:21 +0000 (17:11 +0100)
As suggested by gcc warning.

src/gallium/auxiliary/util/u_debug.c

index 954f5706ef358253f8b1db770bbc97eeac451875..5e373ff24c46581e880b4674b0c20fdcf6bc5689 100644 (file)
@@ -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 {