[Mesa-dev] [PATCH 01/18] glsl: change int->unsigned to silence MSVC warnings

Jose Fonseca jfonseca at vmware.com
Tue Nov 6 04:57:01 PST 2012


Series looks good AFAICT

Jose

----- Original Message -----
> ---
>  src/glsl/ir_builder.cpp |    2 +-
>  src/glsl/ir_builder.h   |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/glsl/ir_builder.cpp b/src/glsl/ir_builder.cpp
> index d96e25c..c62f0b1 100644
> --- a/src/glsl/ir_builder.cpp
> +++ b/src/glsl/ir_builder.cpp
> @@ -77,7 +77,7 @@ swizzle(operand a, int swizzle, int components)
>  }
>  
>  ir_swizzle *
> -swizzle_for_size(operand a, int components)
> +swizzle_for_size(operand a, unsigned components)
>  {
>     void *mem_ctx = ralloc_parent(a.val);
>  
> diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h
> index 7a0a196..067858d 100644
> --- a/src/glsl/ir_builder.h
> +++ b/src/glsl/ir_builder.h
> @@ -94,7 +94,7 @@ ir_expression *saturate(operand a);
>  /**
>   * Swizzle away later components, but preserve the ordering.
>   */
> -ir_swizzle *swizzle_for_size(operand a, int components);
> +ir_swizzle *swizzle_for_size(operand a, unsigned components);
>  
>  ir_swizzle *swizzle_xxxx(operand a);
>  ir_swizzle *swizzle_yyyy(operand a);
> --
> 1.7.3.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 


More information about the mesa-dev mailing list