summaryrefslogtreecommitdiff
path: root/src/glsl
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-03-15 09:18:40 -0600
committerBrian Paul <brianp@vmware.com>2011-03-15 18:21:35 -0600
commitd350ef1682ad6432b8a10e0f6aabdfe77ccb4370 (patch)
tree0504674496258b56c61c771df9db1fe59756dcd5 /src/glsl
parentd029ba9ec0750f9ba3a6291745c986105b4ffbdb (diff)
glsl: add cast to silence signed/unsigned comparison warning
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/ir.cpp2
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