diff options
author | Brian Paul <brianp@vmware.com> | 2012-11-04 16:43:44 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2012-11-06 07:42:37 -0700 |
commit | ab8c5347f18309c62a850dcbd14e505c99fc58e8 (patch) | |
tree | 3007e3e172f1128634dc923bd6d2c446a1456ff6 /src/glsl/lower_vec_index_to_swizzle.cpp | |
parent | 78d3cfb5b4fe1dbe052f87458e62cc2be2ecf171 (diff) | |
download | external_mesa3d-ab8c5347f18309c62a850dcbd14e505c99fc58e8.zip external_mesa3d-ab8c5347f18309c62a850dcbd14e505c99fc58e8.tar.gz external_mesa3d-ab8c5347f18309c62a850dcbd14e505c99fc58e8.tar.bz2 |
glsl: fix signed/unsigned comparision warnings on MSVC
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/glsl/lower_vec_index_to_swizzle.cpp')
-rw-r--r-- | src/glsl/lower_vec_index_to_swizzle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/lower_vec_index_to_swizzle.cpp b/src/glsl/lower_vec_index_to_swizzle.cpp index 46fd6ac..264d6dc 100644 --- a/src/glsl/lower_vec_index_to_swizzle.cpp +++ b/src/glsl/lower_vec_index_to_swizzle.cpp @@ -93,7 +93,7 @@ ir_vec_index_to_swizzle_visitor::convert_vec_index_to_swizzle(ir_rvalue *ir) * large. For simplicity sake, just clamp the index to [0, size-1]. */ const int i = MIN2(MAX2(ir_constant->value.i[0], 0), - (deref->array->type->vector_elements - 1)); + ((int) deref->array->type->vector_elements - 1)); return new(ctx) ir_swizzle(deref->array, i, 0, 0, 0, 1); } |