From: Eric Anholt Date: Tue, 3 Aug 2010 00:49:01 +0000 (-0700) Subject: glsl2: Fix typo in clamp() constant builtin using uint instead of int. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8babd5d9bba75c9f38f384f9cb3587e3543cc28;p=mesa.git glsl2: Fix typo in clamp() constant builtin using uint instead of int. I take back the bad things I've said about the signed/unsigned comparison warning now. --- diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp index 915d362b152..06bea2bef6e 100644 --- a/src/glsl/ir_constant_expression.cpp +++ b/src/glsl/ir_constant_expression.cpp @@ -856,7 +856,7 @@ ir_call::constant_expression_value() break; case GLSL_TYPE_INT: data.i[c] = CLAMP(op[0]->value.i[c], op[1]->value.i[c1], - op[2]->value.u[c2]); + op[2]->value.i[c2]); break; case GLSL_TYPE_FLOAT: data.f[c] = CLAMP(op[0]->value.f[c], op[1]->value.f[c1],