shithub: mc

Download patch

ref: 5cacde485bf6338bbf216b7a5249bb51c84e15fc
parent: d2c04d001ea14c3090fa1853ef10d435e0e56624
author: Ori Bernstein <[email protected]>
date: Wed Jan 16 21:46:46 EST 2013

Touch the right symbol tables.

--- a/parse/pickle.c
+++ b/parse/pickle.c
@@ -493,7 +493,7 @@
             n->block.scope = rdstab(fd);
             n->block.nstmts = rdint(fd);
             n->block.stmts = xalloc(sizeof(Node *)*n->block.nstmts);
-            n->func.scope->super = curstab();
+            n->block.scope->super = curstab();
             pushstab(n->func.scope->super);
             for (i = 0; i < n->block.nstmts; i++)
                 n->block.stmts[i] = unpickle(fd);