glsl: change int->unsigned to silence MSVC warnings
authorBrian Paul <brianp@vmware.com>
Sun, 4 Nov 2012 23:43:44 +0000 (16:43 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 6 Nov 2012 14:42:37 +0000 (07:42 -0700)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/glsl/ir_builder.cpp
src/glsl/ir_builder.h

index d96e25c189fb39d8a9e3415bcd58c8c73f544a77..c62f0b115bb5066711a53f40c8de9ec402111878 100644 (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);
 
index 7a0a196ee67c40b85aabe962f8c0630721d08afd..067858df45bf7c89e8cc3e80a421ada2f0f0d75b 100644 (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);