aboutsummaryrefslogtreecommitdiff
path: root/src/prc1/sym.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/prc1/sym.c')
-rw-r--r--src/prc1/sym.c6
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;