glsl: change int->unsigned to silence MSVC warnings

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
Brian Paul 2012-11-04 16:43:44 -07:00
parent e87a57843c
commit c3466315c0
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);