aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-02-20 22:37:37 -0800
committerMichael Forney <mforney@mforney.org>2019-02-20 22:45:49 -0800
commit0f31c1e97fa86ca4c82ce726852621380ddc8c46 (patch)
treee5904396ab877d1ec167722dface479d209aebc9
parent401e6908a859b46da5c8d8059ccc58c189cd4a26 (diff)
downloadcproc-0f31c1e97fa86ca4c82ce726852621380ddc8c46.tar.xz
Use name parameter instead of tok.lit
This was only called with tok.lit, so it didn't matter in practice.
-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;
}