From d350ef1682ad6432b8a10e0f6aabdfe77ccb4370 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 15 Mar 2011 09:18:40 -0600 Subject: [PATCH] glsl: add cast to silence signed/unsigned comparison warning --- src/glsl/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2