glsl: fix compiling warning from gcc 4.7
authorDave Airlie <airlied@redhat.com>
Tue, 13 Mar 2012 16:05:26 +0000 (16:05 +0000)
committerDave Airlie <airlied@redhat.com>
Sun, 25 Mar 2012 16:12:24 +0000 (17:12 +0100)
commitba3a4d79a7bad959c0d9efbe0daa8d73c281d664
treed939e12cfee0a44d30a3ce26c1d2d9cd3b5b27e8
parentb78a77f979b21a84aecb6fa4f19a2ed51a48c306
glsl: fix compiling warning from gcc 4.7

ir_validate.cpp: In member function ‘virtual ir_visitor_status ir_validate::visit_leave(ir_swizzle*)’:
ir_validate.cpp:458:66: warning: narrowing conversion of ‘ir->ir_swizzle::mask.ir_swizzle_mask::x’ from ‘unsigned int’ to ‘int’ inside { } is ill-formed in C++11 [-Wnarrowing]
ir_validate.cpp:458:66: warning: narrowing conversion of ‘ir->ir_swizzle::mask.ir_swizzle_mask::y’ from ‘unsigned int’ to ‘int’ inside { } is ill-formed in C++11 [-Wnarrowing]
ir_validate.cpp:458:66: warning: narrowing conversion of ‘ir->ir_swizzle::mask.ir_swizzle_mask::z’ from ‘unsigned int’ to ‘int’ inside { } is ill-formed in C++11 [-Wnarrowing]
ir_validate.cpp:458:66: warning: narrowing conversion of ‘ir->ir_swizzle::mask.ir_swizzle_mask::w’ from ‘unsigned int’ to ‘int’ inside { } is ill-formed in C++11 [-Wnarrowing]

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/glsl/ir_validate.cpp