aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/decl.c b/decl.c
index d350d44..8cbb86e 100644
--- a/decl.c
+++ b/decl.c
@@ -411,7 +411,7 @@ istypename(struct scope *s, const char *name)
{
struct declaration *d;
- d = scopegetdecl(s, tok.lit, 1);
+ d = scopegetdecl(s, name, 1);
return d && d->kind == DECLTYPE;
}