aboutsummaryrefslogtreecommitdiff
path: root/src/prc1
diff options
context:
space:
mode:
Diffstat (limited to 'src/prc1')
-rw-r--r--src/prc1/td.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/prc1/td.c b/src/prc1/td.c
index 2847146..0c455f2 100644
--- a/src/prc1/td.c
+++ b/src/prc1/td.c
@@ -104,7 +104,7 @@ static int cid(const struct lex *l, struct prv *p)
{
const struct fn *fn = fn_cur(p);
const char *tr = triplet(p);
- const struct tk *id = p->stk, *v = p->stk + 3;
+ const struct tk *id = p->stk, *v = p->stk + 4;
const struct stentry *e;
const struct type *t = type_find(fn, tr, id->s);
struct tdconstant *tdc = p->tdc;
@@ -178,7 +178,7 @@ static int cid(const struct lex *l, struct prv *p)
static int cnum(const struct lex *l, struct prv *p)
{
const struct fn *fn = fn_cur(p);
- const struct tk *id = p->stk, *num = p->stk + 3;
+ const struct tk *id = p->stk, *num = p->stk + 4;
const char *name = id->s, *tr = triplet(p);
const struct stentry *e;
struct td *td = fn->td;