From: Ian Romanick Date: Wed, 13 Jul 2016 00:06:34 +0000 (-0700) Subject: glsl: Fix typo in ir_unop_f2u implementation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf58e3f52248f670e5269bc2180db091d022aa47;p=mesa.git glsl: Fix typo in ir_unop_f2u implementation This won't affect the output, but it was, technically, wrong. Signed-off-by: Ian Romanick Reviewed-by: Matt Turner --- 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: