diff options
author | José Fonseca <jfonseca@vmware.com> | 2012-04-25 15:49:45 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2012-05-02 10:24:33 +0100 |
commit | 7d1f414103bb294d30cac8fecddff0b2ab694810 (patch) | |
tree | c6c1ed8ba58b785ab339c59b7b82175d8b47a860 /src/gallium/auxiliary/gallivm/lp_bld_printf.c | |
parent | f64fe7d333ef5f00f1d13d19c9b986abe21a524c (diff) | |
download | external_mesa3d-7d1f414103bb294d30cac8fecddff0b2ab694810.zip external_mesa3d-7d1f414103bb294d30cac8fecddff0b2ab694810.tar.gz external_mesa3d-7d1f414103bb294d30cac8fecddff0b2ab694810.tar.bz2 |
gallivm: Move loop var declaration to beginning of scope.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_printf.c')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_printf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_printf.c b/src/gallium/auxiliary/gallivm/lp_bld_printf.c index 0d8d806..5aa802d 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_printf.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_printf.c @@ -182,9 +182,11 @@ lp_build_print_uvec16(struct gallivm_state *gallivm, LLVMBuilderRef builder = gallivm->builder; char format[1000]; LLVMValueRef args[16]; + int i; - for(int i = 0; i < 16; ++i) + for (i = 0; i < 16; ++i) { args[i] = LLVMBuildExtractElement(builder, vec, lp_build_const_int32(gallivm, i), ""); + } util_snprintf(format, sizeof(format), "%s %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u\n", msg); |