]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/8c/cgen.c
etheriwl: don't break controller on command flush timeout
[plan9front.git] / sys / src / cmd / 8c / cgen.c
index 070155fb73d930c21e522c2179768ae6fe77628d..0c26454e82b6f28857b2f7f1ac40ff49b4e55bbd 100644 (file)
@@ -994,10 +994,7 @@ cgen(Node *n, Node *nn)
 
        case OCAST:
                if(nn == Z) {
-                       if(n->type != types[TVOID])
-                               nullwarn(l, Z);
-                       else
-                               cgen(l, Z);
+                       cgen(l, Z);
                        break;
                }
                /*
@@ -1669,7 +1666,7 @@ copy:
                nn->type = types[TLONG];
                regialloc(&nod1, nn, Z);
                lcgen(nn, &nod1);
-               regsalloc(&nod2, nn);
+               regsalloc(&nod2, &nod1);
                nn->type = t;
 
                gins(AMOVL, &nod1, &nod2);