aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_printf.c
diff options
context:
space:
mode:
authorJan Vesely <[email protected]>2016-06-02 20:03:14 -0400
committerJan Vesely <[email protected]>2016-06-13 09:23:09 -0400
commitace70aedcf8b29380a17f68a994b18f60976bca6 (patch)
tree6a52469550a1d4cf189941567dc4b9bf4dcba66b /src/gallium/auxiliary/gallivm/lp_bld_printf.c
parenta04804746f6d999905cda125a0778160d62c73a2 (diff)
gallivm: Fix trivial sign warnings
v2: include whitespace fixes Signed-off-by: Jan Vesely <[email protected]> Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_printf.c')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_printf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_printf.c b/src/gallium/auxiliary/gallivm/lp_bld_printf.c
index 14131b39105..575ebdfdf65 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_printf.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_printf.c
@@ -155,10 +155,10 @@ lp_build_print_value(struct gallivm_state *gallivm,
}
-static int
+static unsigned
lp_get_printf_arg_count(const char *fmt)
{
- int count =0;
+ unsigned count = 0;
const char *p = fmt;
int c;
@@ -195,8 +195,7 @@ lp_build_printf(struct gallivm_state *gallivm,
{
LLVMValueRef params[50];
va_list arglist;
- int argcount;
- int i;
+ unsigned argcount, i;
argcount = lp_get_printf_arg_count(fmt);
assert(ARRAY_SIZE(params) >= argcount + 1);