aboutsummaryrefslogtreecommitdiff
path: root/src/prc1/td.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-10-31 13:54:44 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-10-31 13:54:44 +0100
commit87402a87dc08441874fc0d15ba93527cf479a6dc (patch)
treeeaef94f77986091144c02be3fd3d46a6466813b5 /src/prc1/td.c
parent0e05d09b309bab493c41b6c788933cf82587afb8 (diff)
downloadprc-87402a87dc08441874fc0d15ba93527cf479a6dc.tar.gz
td.c: Use "set to" instead of "to" for constants
Diffstat (limited to 'src/prc1/td.c')
-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;