summaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 2edf01bb8f7..227dfdbd50a 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -898,8 +898,8 @@ ir_to_mesa_visitor::visit(ir_variable *ir)
if (storage->index == -1) {
storage->index = index;
} else {
- assert(index == ((int)storage->index +
- a * statevar->num_elements + i));
+ assert(index ==
+ (int)(storage->index + a * statevar->num_elements + i));
}
} else {
ir_to_mesa_src_reg src(PROGRAM_STATE_VAR, index, NULL);