nir/builder: fix c++11 compiler warning
authorRob Clark <robclark@freedesktop.org>
Fri, 18 Sep 2015 01:07:41 +0000 (21:07 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 18 Sep 2015 01:08:25 +0000 (21:08 -0400)
commit2e4ab489b5963e57df01fa20bb95d67139de8b75
tree45859784fb5b7d08a4306ff67baf7e3a640ba625
parent7c72f593adc0bbe9570236636abf64b4fc18d88d
nir/builder: fix c++11 compiler warning

Fixes:

   In file included from nir/nir_lower_samplers.cpp:27:0:
   nir/nir_builder.h: In function 'nir_ssa_def* nir_channel(nir_builder*, nir_ssa_def*, int)':
   nir/nir_builder.h:222:37: warning: narrowing conversion of 'c' from 'int' to 'unsigned int' inside { } is ill-formed in C++11 [-Wnarrowing]
       unsigned swizzle[4] = {c, c, c, c};

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/glsl/nir/nir_builder.h