summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/ir_to_mesa.cpp
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-02-28 08:57:27 -0700
committerBrian Paul <[email protected]>2015-03-02 08:55:30 -0700
commitc7136ff64691efec1bf58b34019e5283a751f67b (patch)
tree2e1ac0d2b4ac6536f4df758c5f57bdc8289df5d4 /src/mesa/program/ir_to_mesa.cpp
parent16f7b7727569758a4df9c2bae3ca3a0de683960d (diff)
mesa/program: replace Elements() with ARRAY_SIZE()
Acked-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa/program/ir_to_mesa.cpp')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index b2776da45d9..39790ec8e8c 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -1018,7 +1018,7 @@ void
ir_to_mesa_visitor::visit(ir_expression *ir)
{
unsigned int operand;
- src_reg op[Elements(ir->operands)];
+ src_reg op[ARRAY_SIZE(ir->operands)];
src_reg result_src;
dst_reg result_dst;