diff options
author | Brian Paul <brianp@vmware.com> | 2011-03-15 09:18:40 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2011-03-15 18:21:35 -0600 |
commit | d350ef1682ad6432b8a10e0f6aabdfe77ccb4370 (patch) | |
tree | 0504674496258b56c61c771df9db1fe59756dcd5 /src/glsl | |
parent | d029ba9ec0750f9ba3a6291745c986105b4ffbdb (diff) |
glsl: add cast to silence signed/unsigned comparison warning
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index a55b7ef653..a3623b31e5 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -1157,7 +1157,7 @@ ir_texture::set_sampler(ir_dereference *sampler, const glsl_type *type) this->sampler = sampler; this->type = type; - assert(sampler->type->sampler_type == type->base_type); + assert(sampler->type->sampler_type == (int) type->base_type); if (sampler->type->sampler_shadow) assert(type->vector_elements == 4 || type->vector_elements == 1); else |