shithub: mc

Download patch

ref: e9a233e173724f900bec7f2d0379e9ca619dd4fa
parent: 2acbf18832cedf7acdc3f6640d343b5f0feb1398
author: Ori Bernstein <[email protected]>
date: Wed Jun 20 06:35:43 EDT 2012

Rewrite the 'call' for big nodes correctly.

--- a/8/reduce.c
+++ b/8/reduce.c
@@ -685,7 +685,7 @@
             if (size(n) > 4) {
                 r = temp(s, n);
                 ty = mktyptr(n->line, exprtype(r));
-                linsert(&args[0]->expr.args, &n->expr.nargs, 1, addr(r, ty));
+                linsert(&n->expr.args, &n->expr.nargs, 1, addr(r, exprtype(n)));
                 linsert(&args[0]->expr.type->sub, &n->expr.type->nsub, 1, ty);
                 args[0]->expr.type->sub[0] = tyvoid;
                 n->expr.type = tyvoid;