Mesa (master): util: Use int type for format field width.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Jun 14 09:12:14 PDT 2010


Module: Mesa
Branch: master
Commit: 27fafa2587287562f58de6f00799d7a6d2adf9b2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=27fafa2587287562f58de6f00799d7a6d2adf9b2

Author: José Fonseca <jfonseca at vmware.com>
Date:   Mon Jun 14 17:11:21 2010 +0100

util: Use int type for format field width.

As suggested by gcc warning.

---

 src/gallium/auxiliary/util/u_debug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c
index 954f570..5e373ff 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 {



More information about the mesa-commit mailing list