scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 8870f51518fcf0af3e34be171e9ebce325b0dbcf
parent 47a20ad74eb6ab5214698adb05b060cf29e96c00
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat,  5 Oct 2013 19:54:00 +0200

Fix typo in right

right was incorrectly typed as rigth.

Diffstat:
Mtree.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tree.c b/tree.c @@ -15,7 +15,7 @@ struct node { struct node_op2 { struct node base; struct node *left; - struct node *rigth; + struct node *right; }; struct nodesym { @@ -50,7 +50,7 @@ node(unsigned char op, struct node *l, struct node *r) np->base.op = op; np->left = l; - np->rigth = r; + np->right = r; return (struct node *) np; } @@ -181,7 +181,7 @@ prtree_helper(register struct node *np) } case 2: prtree_helper(((struct node_op2 *) np)->left); - prtree_helper(((struct node_op2 *) np)->rigth); + prtree_helper(((struct node_op2 *) np)->right); break; case 255: { register struct node **bp, **lim;