From: Brian Paul Date: Tue, 15 Mar 2011 15:18:40 +0000 (-0600) Subject: glsl: add cast to silence signed/unsigned comparison warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d350ef1682ad6432b8a10e0f6aabdfe77ccb4370;p=mesa.git glsl: add cast to silence signed/unsigned comparison warning --- diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index a55b7ef6536..a3623b31e5d 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