shithub: mc

Download patch

ref: 4eb9ecac4d2b38388efeebf00c64492a668461a1
parent: 81bbd4c2bf2f3b7ccf53d2f46aef65f56e0ae7e5
author: Ori Bernstein <[email protected]>
date: Mon Jan 20 18:55:37 EST 2014

Acutally get the rval of negation expression children.

--- a/6/simp.c
+++ b/6/simp.c
@@ -1423,7 +1423,7 @@
                 t->lit.type = n->expr.type;
                 u->expr.type = n->expr.type;
                 v = simpblob(s, u, &s->blobs, &s->nblobs);
-                r = mkexpr(n->line, Ofmul, v, args[0], NULL);
+                r = mkexpr(n->line, Ofmul, v, rval(s, args[0], NULL), NULL);
                 r->expr.type = n->expr.type;
             } else {
                 r = visit(s, n);
@@ -1446,7 +1446,6 @@
                 i = 0;
             else
                 i = 2;
-            assert(cmpmap[n->expr.op][i] != Obad);
             n->expr.op = cmpmap[n->expr.op][i];
             r = visit(s, n);
             break;