projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d24076
)
util: Use int type for format field width.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 14 Jun 2010 16:11:21 +0000
(17:11 +0100)
committer
José 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
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_debug.c
b/src/gallium/auxiliary/util/u_debug.c
index 954f5706ef358253f8b1db770bbc97eeac451875..5e373ff24c46581e880b4674b0c20fdcf6bc5689 100644
(file)
--- 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 {