aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2016-07-12 17:06:34 -0700
committerIan Romanick <[email protected]>2016-08-17 10:52:39 +0100
commitcf58e3f52248f670e5269bc2180db091d022aa47 (patch)
tree470aa240e1b9eba6429ad110a18e9f8a63e1ba8b /src
parent8b123b08cba852b5c9660cc0b6c02c37d432baa9 (diff)
glsl: Fix typo in ir_unop_f2u implementation
This won't affect the output, but it was, technically, wrong. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/glsl/ir_constant_expression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ir_constant_expression.cpp b/src/compiler/glsl/ir_constant_expression.cpp
index fa8d7f758b0..a9613b256b1 100644
--- a/src/compiler/glsl/ir_constant_expression.cpp
+++ b/src/compiler/glsl/ir_constant_expression.cpp
@@ -573,7 +573,7 @@ ir_expression::constant_expression_value(struct hash_table *variable_context)
case ir_unop_f2u:
assert(op[0]->type->base_type == GLSL_TYPE_FLOAT);
for (unsigned c = 0; c < op[0]->type->components(); c++) {
- data.i[c] = (unsigned) op[0]->value.f[c];
+ data.u[c] = (unsigned) op[0]->value.f[c];
}
break;
case ir_unop_i2f: