From: Brian Paul Date: Sun, 4 Nov 2012 23:43:44 +0000 (-0700) Subject: glsl: change int->unsigned to silence MSVC warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c3466315c004302b924e346ceab019ef8b446635;p=mesa.git glsl: change int->unsigned to silence MSVC warnings Reviewed-by: Jose Fonseca --- diff --git a/src/glsl/ir_builder.cpp b/src/glsl/ir_builder.cpp index d96e25c189f..c62f0b115bb 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 7a0a196ee67..067858df45b 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);