glsl2: Fix typo in clamp() constant builtin using uint instead of int.
authorEric Anholt <eric@anholt.net>
Tue, 3 Aug 2010 00:49:01 +0000 (17:49 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 3 Aug 2010 00:50:20 +0000 (17:50 -0700)
I take back the bad things I've said about the signed/unsigned
comparison warning now.

src/glsl/ir_constant_expression.cpp

index 915d362b15243ff49d91001116fc2dfd574df483..06bea2bef6e95724275cbdf35c0e5ed0e49b99e1 100644 (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],