[Mesa-dev] [PATCH 3/6] gallium: Use unsigned for loop index

Matt Turner mattst88 at gmail.com
Wed Dec 16 20:14:45 PST 2015


On Wed, Dec 16, 2015 at 7:41 PM, Edward O'Callaghan
<eocallaghan at alterapraxis.com> wrote:
> Found-by: Coccinelle
> Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
> Reviewed-by: Brian Paul <brianp at vmware.com>
> ---
>  src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
> index 09c1b37..f070ce7 100644
> --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
> +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
> @@ -1197,7 +1197,7 @@ get_soa_array_offsets(struct lp_build_context *uint_bld,
>
>     if (need_perelement_offset) {
>        LLVMValueRef pixel_offsets;
> -      int i;
> +      unsigned int i;

We just do 'unsigned' instead of 'unsigned int' in Mesa. Same comment
for the rest of the patches.


More information about the mesa-dev mailing list