preprocessor: fix bug in calculation of cost of trinary ops

time-shift
Houtan Bastani 2015-09-03 12:01:01 +02:00
parent 9b525713d9
commit 7697067062
1 changed files with 1 additions and 0 deletions

View File

@ -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