ref: 76953d9121994abce24da20d6b96587badb93f39
parent: d837853fa139f8c35929d1feebee52ba61fdc1d6
author: Roberto E. Vargas Caballero <[email protected]>
date: Sun Aug 10 18:52:03 EDT 2014
Fix complex calculation The sign of the comparision was wrong, because we want the maximum of the childs.
--- a/cc2/cgen.c
+++ b/cc2/cgen.c
@@ -203,7 +203,7 @@
if (lp)
np->complex = lp->complex;
if (rp) {
- int8_t d = rp->complex - np->complex;
+ int8_t d = np->complex - rp->complex;
if (d == 0)
++np->complex;