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.
This commit is contained in:
Eric Anholt
2010-08-02 17:49:01 -07:00
parent 47f305a4fc
commit c8babd5d9b

View File

@@ -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],