diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-03-01 22:58:23 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-03-01 22:58:23 +0000 |
commit | 0b8d70bfb715bc3d89b6dfae86fc79d7c4387f02 (patch) | |
tree | 7dae219ade5b5ddd10091c3a0c018706fd989d0b /tools/lemon | |
parent | 0e67f0c7a166692e72b9721b1a6abf60e1c633a7 (diff) |
Fix a cut-n-pasteo and add a const cast to quiet a warning.
svn path=/trunk/; revision=47991
Diffstat (limited to 'tools/lemon')
-rw-r--r-- | tools/lemon/lemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lemon/lemon.c b/tools/lemon/lemon.c index 5d8b559010..ae1731e928 100644 --- a/tools/lemon/lemon.c +++ b/tools/lemon/lemon.c @@ -2165,7 +2165,7 @@ to follow the previous rule."); int i; rp->ruleline = psp->tokenlineno; rp->rhs = (struct symbol**)&rp[1]; - rp->rhsalias = (char**)&(rp->rhs[psp->nrhs]); + rp->rhsalias = (const char**)&(rp->rhs[psp->nrhs]); for(i=0; i<psp->nrhs; i++){ rp->rhs[i] = psp->rhs[i]; rp->rhsalias[i] = psp->alias[i]; @@ -4325,7 +4325,7 @@ typedef struct s_x1node { const char *data; /* The data */ struct s_x1node *next; /* Next entry with the same hash */ struct s_x1node **from; /* Previous link */ -} x1node;ode; +} x1node; /* There is only one instance of the array, which is the following */ static struct s_x1 *x1a; |