From 769706706215081a8708ca1be473b2a29ce6a830 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Thu, 3 Sep 2015 12:01:01 +0200 Subject: [PATCH] preprocessor: fix bug in calculation of cost of trinary ops --- preprocessor/ExprNode.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/preprocessor/ExprNode.cc b/preprocessor/ExprNode.cc index 7b52a0bda..c09f25b9b 100644 --- a/preprocessor/ExprNode.cc +++ b/preprocessor/ExprNode.cc @@ -3871,6 +3871,7 @@ TrinaryOpNode::cost(const temporary_terms_t &temporary_terms, bool is_matlab) co int cost = arg1->cost(temporary_terms, is_matlab); cost += arg2->cost(temporary_terms, is_matlab); + cost += arg3->cost(temporary_terms, is_matlab); if (is_matlab) // Cost for Matlab files