diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-10-11 01:26:41 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-10-20 01:03:47 +0200 |
| commit | cab0135f57ca1c7e448e11f866b0adb8a1328d48 (patch) | |
| tree | fcc24dc0b2d350524c33f07dc8b71f491431e832 /src/prc1/sym.c | |
| parent | 4ce39e4fc1de9536de7dedfe91b6dee38dec76ae (diff) | |
| download | prc-master.tar.gz | |
Diffstat (limited to 'src/prc1/sym.c')
| -rw-r--r-- | src/prc1/sym.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/prc1/sym.c b/src/prc1/sym.c index fb67f14..69d3bca 100644 --- a/src/prc1/sym.c +++ b/src/prc1/sym.c @@ -363,7 +363,8 @@ static int invalid(const struct tk *tk, const struct type *a, static const struct type *genlittype(struct prv *p) { const struct fn *fn = fn_cur(p); - const struct type *byte = type_find(fn, "char"); + const char *tr = triplet(p); + const struct type *byte = type_find(fn, tr, "char"); struct type *bytedup = NULL, *t = NULL; if (!byte) @@ -420,9 +421,10 @@ const struct type *sym_type(struct prv *p, const struct sym *s) case SYM_ID: { const struct stentry *e = fn_var(fn, tk); + const char *tr = triplet(p); const struct type *t; - if (!e && !(t = type_ufind(fn, tk->s))) + if (!e && !(t = type_ufind(fn, tr, tk->s))) return NULL; else if (e) t = e->t; |
